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

Add focus listener to JSpinner text #13

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Add focus listener to JSpinner text #13

merged 1 commit into from
Apr 30, 2015

Conversation

hinerm
Copy link
Member

@hinerm hinerm commented Apr 30, 2015

This (mostly) ensures the text of a JSpinner is selected on focus. On OSX it
seems to always work with tabs, and mostly work with mouse clicking. However
there does seem to be a race condition where the text selection can be lost,
presumably from the JSPinner firing a validation event after the text field's
selection has been processed.

See #12 for future work.

@hinerm
Copy link
Member Author

hinerm commented Apr 30, 2015

@ctrueden is this OK..? 🐙

This (mostly) ensures the text of a JSpinner is selected on focus. On OSX it
seems to always work with tabs, and mostly work with mouse clicking. However
there does seem to be a race condition where the text selection can be lost,
presumably from the JSPinner firing a validation event after the text field's
selection has been processed.

See #12 for future work.
@hinerm hinerm force-pushed the select-jspinner-text branch from 3d3b555 to ff1fa86 Compare April 30, 2015 18:17
@hinerm hinerm merged commit ff1fa86 into master Apr 30, 2015
@hinerm hinerm deleted the select-jspinner-text branch April 30, 2015 18:18
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.

1 participant