diff --git a/modules/keyboard.js b/modules/keyboard.js index 5089eba673..cf1c023d27 100644 --- a/modules/keyboard.js +++ b/modules/keyboard.js @@ -601,7 +601,12 @@ function makeEmbedArrowHandler(key, shiftKey) { index += range.length + 1; } const [leaf] = this.quill.getLeaf(index); - if (!(leaf instanceof EmbedBlot)) return true; + + // NOTE: a line break is not an EmbedBlot that needs special handling + if (!(leaf instanceof EmbedBlot) || leaf.statics.tagName === 'BR') { + return true; + } + if (key === 'ArrowLeft') { if (shiftKey) { this.quill.setSelection(