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

core: Fix text selection on focus #18320

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Oct 19, 2024

This patch fixes the logic behind selecting text when focusing the text field.

Most importantly, it will fix the issue of text being selected when clicking instead of a caret being placed.

@kjarosh kjarosh added text Issues relating to text rendering/input A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already) labels Oct 19, 2024
@kjarosh kjarosh added the waiting-on-review Waiting on review from a Ruffle team member label Oct 24, 2024
@kjarosh kjarosh force-pushed the focus-test-selection branch 2 times, most recently from 4c56461 to 6e5f818 Compare November 4, 2024 11:24
This test verifies how the focus and text selection behave when
focusing the text field programmatically.
This test verifies how the text selection and focus behave when
focusing a text field with the keyboard (tab focusing).
This patch fixes the logic behind selecting text
when focusing the text field.
This test verifies how the text field and its selection behave
when placing a caret with the mouse.
@kjarosh kjarosh enabled auto-merge (rebase) November 15, 2024 22:48
@kjarosh kjarosh removed the waiting-on-review Waiting on review from a Ruffle team member label Nov 15, 2024
@kjarosh kjarosh merged commit 99561d9 into ruffle-rs:master Nov 15, 2024
22 checks passed
@kjarosh kjarosh deleted the focus-test-selection branch November 15, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already) text Issues relating to text rendering/input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants