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

feat(selection): support triple-click to select all text of block #2037

Merged
merged 11 commits into from
Apr 14, 2023

Conversation

fundon
Copy link
Contributor

@fundon fundon commented Apr 12, 2023

Related to: #2036

Screen.Recording.2023-04-14.at.5.19.23.PM.mov

@codesandbox
Copy link

codesandbox bot commented Apr 12, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@vercel
Copy link

vercel bot commented Apr 12, 2023

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

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 9:15am
blocksuite-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 9:15am
blocksuite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 9:15am

@@ -309,6 +310,14 @@ export class DefaultSelectionManager {
showFormatQuickBarByDoubleClick(e, this.page, this.container, this.state);
};

private _onContainerTripleClick = (e: SelectionEvent) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lawvs You can add the logic of all the text of the block in this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It mainly shows the logic of format-quick-bar and whether the content is correct when copying.

@fundon fundon marked this pull request as draft April 12, 2023 08:12
Copy link
Member

@doodlewind doodlewind left a comment

Choose a reason for hiding this comment

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

This is handled pretty well!

@doodlewind doodlewind merged commit 953a22b into toeverything:master Apr 14, 2023
12 checks passed
@fundon fundon deleted the feat/support-tripleclick branch April 14, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants