diff --git a/src/components/Block.vue b/src/components/Block.vue index 4a35372..a42afe0 100644 --- a/src/components/Block.vue +++ b/src/components/Block.vue @@ -157,7 +157,9 @@ function keyDownHandler(event: KeyboardEvent) { const selection = window.getSelection() if (!(menu.value && menu.value.open) && atFirstChar() && selection && selection.anchorOffset === 0) { event.preventDefault() - emit('merge') + if (isTextBlock(props.block.type)) { + emit('merge') + } } } else if (event.key === 'Enter') { entersPressed.value += 1 diff --git a/src/components/blocks/OptionsBlock.vue b/src/components/blocks/OptionsBlock.vue index cc617c1..e177deb 100644 --- a/src/components/blocks/OptionsBlock.vue +++ b/src/components/blocks/OptionsBlock.vue @@ -1,5 +1,5 @@