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

Support select all for node selection #4233

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Conversation

fantactuka
Copy link
Contributor

Fixes #4215

We usually dispatch command (e.g., would be SELECT_ALL_COMMAND), and later handle it in RichTextPlugin/PlainTextPlugin, but this one is slightly different, since it's specifically for node selection as range selection is handled by contenteditable. So to avoid discrepancy, when node selection would trigger command and range selection would not, handling it right in core

@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 Mar 28, 2023
@vercel
Copy link

vercel bot commented Mar 28, 2023

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

Name Status Preview Comments Updated
lexical ✅ Ready (Inspect) Visit Preview Mar 28, 2023 at 8:52PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 28, 2023 at 8:52PM (UTC)

@github-actions
Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 26.89 KB (+0.13% 🔺) 538 ms (+0.13% 🔺) 619 ms (+35.36% 🔺) 1.2 s
packages/lexical-rich-text/dist/LexicalRichText.js 37.73 KB (+0.08% 🔺) 755 ms (+0.08% 🔺) 312 ms (-24.79% 🔽) 1.1 s
packages/lexical-plain-text/dist/LexicalPlainText.js 37.7 KB (+0.07% 🔺) 755 ms (+0.07% 🔺) 364 ms (-23.79% 🔽) 1.2 s

@fantactuka fantactuka merged commit 0dc89f8 into main Mar 31, 2023
@fantactuka fantactuka deleted the select-all-on-node-selection branch March 31, 2023 14:40
@acywatson acywatson mentioned this pull request Apr 14, 2023
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.

Bug: when a DecoratorNode is selected, cmd+A does not trigger a selection change event
4 participants