-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 pressing ESC in text fields #11190
Conversation
- Reuse "SearchTextField" - Make ... usage consistent in "Search..." and "Filter groups..." - Let translation key contain the dots
The key problem is the clash of Keybinding |
I added a method to handle that. Did not want to re-use "close" (as it was done in 2022) As user, I want Esc for both, clear search and close dialog. OK, maybe, clear search is the same as close dialog, because the search is closed (somehow)? If yes, then I will also reuse the CLOSE keybinding |
Tested it without resetting my preferences on macOS: |
with resetting the prefs same behavior. Esc closes the entry editor now |
|
This is what should be expected, because Esc is for closing 😅. I personally found it very annoying and would remove the functionality to close the entry editor via keyboard shortcut. Nobody missed it the last two years 😅 |
Closing the entry editor with ESC is worse than now. When I am typing into a field I just want to get ridd of the focus of the field, not CTRL + E is both for opening and closing the entry editor. but only opening works.. |
Only "OPEN_CLOSE_ENTRY_EDITOR" (formerly known as "EDIT_ENTRY") is listend to
Caused by Debugging Code. |
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |
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.
search and entry editor work now as expected
Fixes #10764
I somehow hang. Seems that theCLEAR_SEARCH
is not found - even if configured.Did not reset preferences again... Is it becauseEsc
!=Escape
?Just removing the case statement for the text field would be enough to fix the issue.
Background:
SearchTextField
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)