Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 16, 2024
1 parent 4bbe939 commit f95a296
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,7 @@ test.describe('TextFormatting', () => {
<div draggable="false">
<img
alt="Yellow flower in tilt shift lens"
class="focused"
draggable="false"
src="${SAMPLE_IMAGE_URL}"
style="height: inherit; max-width: 500px; width: inherit" />
Expand Down
2 changes: 1 addition & 1 deletion packages/lexical/src/LexicalEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function $canRemoveText(

function isPossiblyAndroidKeyPress(timeStamp: number): boolean {
return (
lastKeyCode === 'PageUp' &&
lastKeyCode === 'Dead' &&
timeStamp < lastKeyDownTimeStamp + ANDROID_COMPOSITION_LATENCY
);
}
Expand Down

0 comments on commit f95a296

Please sign in to comment.