Skip to content

Commit

Permalink
narrowing the scope of the if check
Browse files Browse the repository at this point in the history
  • Loading branch information
miku1958 committed Dec 10, 2024
1 parent 27685bf commit 73cc003
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class EditPlugin implements EditorPlugin {
break;

case 'Enter':
if (!hasCtrlOrMetaKey && event.rawEvent.keyCode == 13) {
if (!hasCtrlOrMetaKey && event.rawEvent.keyCode !== 229) {
// Safari responds to the EnterKey from IM, where IM should handle the key and the keycode is not 13.
keyboardEnter(editor, rawEvent, this.handleNormalEnter);
}
Expand Down

0 comments on commit 73cc003

Please sign in to comment.