Skip to content

Commit

Permalink
fix Safari responds to the EnterKey from IM
Browse files Browse the repository at this point in the history
  • Loading branch information
miku1958 committed Dec 9, 2024
1 parent 0d6f734 commit 7dbc1a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ export class EditPlugin implements EditorPlugin {
break;

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

0 comments on commit 7dbc1a5

Please sign in to comment.