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

When filtering by user, keystrokes should not be treated as global keyboard shortcuts #35

Closed
floscher opened this issue Feb 2, 2017 · 2 comments
Labels

Comments

@floscher
Copy link
Member

floscher commented Feb 2, 2017

When you have the filter dialog open and type in a username, containing letters like S, A or W these letters are added to the text field, but also the global keyboard shortcuts of JOSM are fired.

The desired behaviour would be that the keystrokes are captured by the focused component (the TextField), but don't count as keyboard shortcuts (at least when neither Ctrl nor Alt is pressed simultaneously).

grafik

@floscher floscher added the bug label Feb 2, 2017
@giackserva
Copy link

I think this would be fixed by using DisableShortcutsOnFocusGainedTextField instead of JTextField

@floscher
Copy link
Member Author

Thank you for the suggestion! I switched the JTextField for a DisableShortcutsOnFocusGainedTextField. This change will roll out with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants