From a71cfb56a4fee40a8e841a81da5af7434e5cc51b Mon Sep 17 00:00:00 2001 From: Sherry Wong Date: Mon, 11 Nov 2024 17:52:17 +0800 Subject: [PATCH] address prettier --- packages/lexical-rich-text/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lexical-rich-text/src/index.ts b/packages/lexical-rich-text/src/index.ts index 6e3a4c78820..c4fc2c53d68 100644 --- a/packages/lexical-rich-text/src/index.ts +++ b/packages/lexical-rich-text/src/index.ts @@ -863,14 +863,14 @@ export function registerRichText(editor: LexicalEditor): () => void { // Exception handling for iOS native behavior instead of Lexical's behavior when using Korean on iOS devices. // On other devices, if you backspace during composing, you get a keyCode of 229 (composing state), but on iOS, the behavior is different: it outputs a keyCode of 8 and appends the remnants of the composing character to the previous character. - if ( + if ( event.keyCode === 8 && navigator.language === 'ko-KR' && /iPad|iPhone|iPod/.test(navigator.userAgent) ) { return false; } - + event.preventDefault(); const {anchor} = selection; const anchorNode = anchor.getNode();