From dce86c0044abb17a6237ac302d2842ad946d743d Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 16 May 2024 03:24:05 +0800 Subject: [PATCH] . --- packages/lexical-selection/src/__tests__/utils/index.ts | 4 ++-- packages/lexical/src/LexicalEvents.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lexical-selection/src/__tests__/utils/index.ts b/packages/lexical-selection/src/__tests__/utils/index.ts index b8317d56b3e..540d3f897cb 100644 --- a/packages/lexical-selection/src/__tests__/utils/index.ts +++ b/packages/lexical-selection/src/__tests__/utils/index.ts @@ -782,7 +782,7 @@ export async function applySelectionInputs( bubbles: true, cancelable: true, ctrlKey: true, - key: 'z', + key: 'Z', keyCode: 90, }), ); @@ -795,7 +795,7 @@ export async function applySelectionInputs( bubbles: true, cancelable: true, ctrlKey: true, - key: 'z', + key: 'Z', keyCode: 90, shiftKey: true, }), diff --git a/packages/lexical/src/LexicalEvents.ts b/packages/lexical/src/LexicalEvents.ts index 932af7698d6..a8c7991edab 100644 --- a/packages/lexical/src/LexicalEvents.ts +++ b/packages/lexical/src/LexicalEvents.ts @@ -516,7 +516,7 @@ function $canRemoveText( function isPossiblyAndroidKeyPress(timeStamp: number): boolean { return ( - lastKeyCode === '229' && + lastKeyCode === 'PageUp' && timeStamp < lastKeyDownTimeStamp + ANDROID_COMPOSITION_LATENCY ); }