From 73cc003a59946158a492ff4619c383c51a4327d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E9=BB=9B=E6=B7=B3=E5=8D=8E?= Date: Tue, 10 Dec 2024 10:23:58 +0800 Subject: [PATCH] narrowing the scope of the if check --- packages/roosterjs-content-model-plugins/lib/edit/EditPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/roosterjs-content-model-plugins/lib/edit/EditPlugin.ts b/packages/roosterjs-content-model-plugins/lib/edit/EditPlugin.ts index c94899fe0af..01acb586253 100644 --- a/packages/roosterjs-content-model-plugins/lib/edit/EditPlugin.ts +++ b/packages/roosterjs-content-model-plugins/lib/edit/EditPlugin.ts @@ -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); }