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

Normalize UI node selection #3898

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Normalize UI node selection #3898

merged 3 commits into from
Nov 15, 2023

Conversation

luin
Copy link
Member

@luin luin commented Nov 2, 2023

This PR added a new module to normalize browser's native behavior.

Specifically, in Firefox, when the current line blot contains a UI node, pressing CMD+ArrowLeft in macOS would result in the caret being placed right before the UI node. This PR normalizes the behavior by checking such situations and moving the caret after the UI node.

Test Plan

@luin luin force-pushed the zh-ui-selection branch 6 times, most recently from 165811b to 6de005b Compare November 3, 2023 00:09
@luin luin force-pushed the zh-ui-selection branch 3 times, most recently from d0e3f48 to 854a75d Compare November 3, 2023 07:11
@luin luin force-pushed the zh-ui-selection branch 2 times, most recently from ea08fca to c3a7695 Compare November 5, 2023 03:20
@luin luin marked this pull request as ready for review November 5, 2023 04:08
@luin luin requested a review from jhchen November 5, 2023 04:13
@luin luin merged commit 69134e4 into develop Nov 15, 2023
5 checks passed
@luin luin deleted the zh-ui-selection branch November 15, 2023 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slab has a very serious issue that needs to be fixed as soon as possible
2 participants