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

Aligning focus behavior for Spinner widget #2182

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Conversation

georgweiss
Copy link
Collaborator

Focus behavior same as for Text Entry widget: when selected explicitly through tab button, the text is selected and overwritten when user enters new value from keyboard or by using up/down button.

Also fixed ESCAPE handling which did not work. Apparently JavaFX Spinner will not receive key event from ESCAPE button using onKeyPressed, need to use event filter instead.

ESCAPE reverts back to unedited value.

Done all testing I can think of, but additional testing would be appreciated.

@georgweiss georgweiss requested a review from kasemir March 18, 2022 15:09
Copy link
Collaborator

@kasemir kasemir left a comment

Choose a reason for hiding this comment

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

Done all testing I can think of, but additional testing would be appreciated.

That never ends with all the possible platforms and future JFX updates, but we can handle issues as they arise.
Looks great for now, just indicating the 'active' state via background color is good progress.

@georgweiss georgweiss merged commit 75ecd34 into master Mar 18, 2022
@georgweiss georgweiss deleted the CSSTUDIO-1508 branch March 18, 2022 16:31
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.

2 participants