Skip to content

Conversation

@AllanChain
Copy link
Contributor

Fixes #10106

This PR uses the select event instead of the mouseup event for firing the input-selection-end event (logseq.Editor.onInputSelectionEnd). This eliminates some unexpected behaviors reported in #10106 and enables keyboard interactions.

Manually tested and it works. And the selection of multiple blocks is not affected.

@github-actions github-actions bot added the fix label Aug 28, 2023
@tiensonqin tiensonqin requested review from tiensonqin and xyhp915 and removed request for tiensonqin August 29, 2023 10:15
Copy link
Collaborator

@xyhp915 xyhp915 left a comment

Choose a reason for hiding this comment

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

LGTM

@xyhp915 xyhp915 requested review from andelf and tiensonqin August 29, 2023 16:13
@tiensonqin tiensonqin force-pushed the fix/input-selection branch from efdd7f1 to c5c625a Compare August 30, 2023 06:16
Copy link
Contributor

@tiensonqin tiensonqin left a comment

Choose a reason for hiding this comment

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

Works great! 💯
Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

input-selection-end event isn't firing correctly in some cases

3 participants