Skip to content

Refine backspace handling in Tables#3213

Merged
tylerjbainbridge merged 3 commits intomainfrom
refine-backspace-handling-in-tables
Oct 19, 2022
Merged

Refine backspace handling in Tables#3213
tylerjbainbridge merged 3 commits intomainfrom
refine-backspace-handling-in-tables

Conversation

@tylerjbainbridge
Copy link
Copy Markdown
Contributor

This is a patch. The real solution is to refine the way selection is modified after hitting backspace. The focus should not be moved to a node with a different shadowRoot, but right now this is how native domSelection works.

Before:

Screen.Recording.2022-10-18.at.4.05.36.PM.mov

After:

Screen.Recording.2022-10-18.at.4.05.08.PM.mov

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 18, 2022

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

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Oct 18, 2022 at 8:22PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Oct 18, 2022 at 8:22PM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 18, 2022
@tylerjbainbridge tylerjbainbridge changed the base branch from main to allow-list-change-in-table October 18, 2022 20:17
Copy link
Copy Markdown
Member

@zurfyx zurfyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, let's ship the workaround for now and investigate the long-term fix more carefully

Base automatically changed from allow-list-change-in-table to main October 19, 2022 15:45
@tylerjbainbridge tylerjbainbridge merged commit 5b7f979 into main Oct 19, 2022
@tylerjbainbridge tylerjbainbridge deleted the refine-backspace-handling-in-tables branch October 19, 2022 15:46
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

Development

Successfully merging this pull request may close these issues.

3 participants