Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Reset compositionKey when backspacing a selection on Android where anchor and focus keys are different #5389

Conversation

amanharwara
Copy link
Contributor

fixes #5259

PR #5077 added a fix for the android backspace bug where pressing backspace delete two characters at once, by setting the compositionKey to selection.anchor.key when on Android. However, in cases where the anchor.key and focus.key are different, the compositionKey isn't cleared causing an issue where the selection wouldn't go away as described in #5259.

Copy link

vercel bot commented Dec 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2023 2:12pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2023 2:12pm

@acywatson
Copy link
Contributor

Looks right, thank you!

@acywatson acywatson merged commit 0dbb0f4 into facebook:main Dec 28, 2023
45 checks passed
@amanharwara amanharwara deleted the android-multi-key-select-backspace-issue branch December 30, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
3 participants