-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix TextBox multiline selection with up/down keys till start/end of text #18746
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
fix TextBox multiline selection with up/down keys till start/end of text #18746
Conversation
You are changing public API. This can't be merged. The logic should also only expand the current selection to the end of the text when the current line is already added to the selection, and a second navigation in that direction is requested. shiftSelection.mp4 |
Hi Benedikt I'm not sure what you try to show on video if I create tb_selection_fix.mp4 |
The added logic to TextPresenter can be added to TextBox itself, so you do not need to add a isSelecting flag |
I've tried... |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
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.
LGTM
You can test this PR using the following package version. |
…ext (#18746) * fix: TextBox multiline selection with up/down keys till start/end of text * refactor to preserve public API of TextPresenter * refactor and cleanup
What does the pull request do?
Fix TextBox with multiline text during selection (Shift) with Up/Down keys
What is the current behavior?
In TextBox with multiline text while selecting (holding Shift):
pressing Down key on last line is not extending selection till the end of the last line text
pressing Up key on first line is not extending selection till the start of the first line text
What is the updated/expected behavior with this PR?
In TextBox with multiline text while selecting (holding Shift):
pressing Down key on last line will extend selection till the end of the last line text
pressing Up key on first line will extend selection till the start of the first line text
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues