Skip to content

Commit

Permalink
fix(BlockquotePlugin): block sending a message (#18592)
Browse files Browse the repository at this point in the history
  • Loading branch information
olafsulich authored Jan 16, 2025
1 parent 8ef1d15 commit 4fc1101
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ const registerBlockquoteEnterCommand = (editor: LexicalEditor) => {
return false;
}

if (!event.shiftKey) {
return false;
}

event.preventDefault();

if (event.shiftKey) {
editor.update(() => {
editor.dispatchCommand(INSERT_LINE_BREAK_COMMAND, false);
});
}
editor.update(() => {
editor.dispatchCommand(INSERT_LINE_BREAK_COMMAND, false);
});

return true;
},
Expand Down

0 comments on commit 4fc1101

Please sign in to comment.