-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Windows/Linux keyboard shortcuts at a wordwrap #96323
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
Windows/Linux keyboard shortcuts at a wordwrap #96323
Conversation
|
I'm going to consider this blocked on #95948, which will bring back the extend/expand distinction needed to fix my last TODO (shift+home/end expands on Mac). |
9c74d81 to
a5f819c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was a typo in this test (probably by me in an earlier PR).
a5f819c to
7ed042b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ideally this shouldn't be implemented in _LineBreak, as it's only supposed to tell you where the boundary is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved it to the action and I think it makes more sense there, thanks for the suggestion.
In order to do this I added continuesAtWrap to DirectionalCaretMovementIntent even though most of its subclasses don't use continuesAtWrap. Let me know if you think that's not alright.
|
(triage) @justinmc Looks like google testing got stuck on this one and I don't see a way to restart it.. Maybe push an empty commit? |
|
I pushed a merge commit, hopefully that fixes it. Thanks for the reminder. |
|
This pull request is not suitable for automatic merging in its current state.
|
ca982bc to
6a97a50
Compare
Windows, Mac, and Linux all have different behavior for how wordwraps are treated by keyboard shortcuts that jump to the beginning/end of a line. Previously, Flutter always stopped at wordwrapped lines. This PR aims to get the behavior correct on all platforms.
I believe I covered all of the cases affected by this PR in the tests, so to see exactly what the behavior should be on each platform, check the tests. These are the high level features:
Fixes #90993