-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix: Keyboard shortcuts cannot be edited in Preferences (closes #14237) #14312
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: Keyboard shortcuts cannot be edited in Preferences (closes #14237) #14312
Conversation
Hey @AmandaBalderas20!Thank you for contributing to JabRef! Your help is truly appreciated ❤️. We have automatic checks in place, based on which you will soon get automated feedback if any of them are failing. We also use TragBot with custom rules that scans your changes and provides some preliminary comments, before a maintainer takes a look. TragBot is still learning, and may not always be accurate. In the "Files changed" tab, you can go through its comments and just click on "Resolve conversation" if you are sure that it is incorrect, or comment on the conversation if you are doubtful. Please re-check our contribution guide in case of any other doubts related to our contribution workflow. |
|
Thanks a lot for your PR, please check the failing tests in KeyBindingsTabModelTest. Maybe they need to be adapted? |
|
|
||
| Optional<String> saved = prefsRepo.get(binding); | ||
| assertTrue(saved.isPresent()); | ||
| assertTrue("ctrl+shift+L".equalsIgnoreCase(saved.get())); |
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.
Can you make this an assertEquals? This makes it easer to see the diff when tests fails
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.
You can just do assertEquals(Optional.of("...."), saved)
|
Tess work for me on mac as well. |
No - you fixed an issue. Please add a line - you can ref the issue there #14237 |
|
KeyBindingsTabModelTest fails. I cannot verfiy it because there is an assumeFalse(OSX) inside, so the tests do not run on mac |
|
Locally Not sure how to proceed
|
|
I reviewed it and I think the failing tests in KeyBindingsTabModelTest expect hasChanged to be false after resetting a key binding. |
|
It would be great if you add this as comment to the test somehow |
|
Okay, so I’ll update the tests and add a comment explaining why hasChanged() is now expected to be true after a reset (because of the fix for #14237) |
Head branch was pushed to by a user without write access
| assertTrue(saved.isPresent()); | ||
| assertTrue("ctrl+shift+L".equalsIgnoreCase(saved.get())); | ||
| assertEquals(Optional.of("ctrl+shift+L"), saved); |
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.
Thank you for this, too!
|
Does not seem to fix the issue on JabRef 6.0-alpha.194--2025-11-24--5e08c82 New keycombinations are ignored. How are they supposed to be entered? |

Closes #14237
I fixed an issue where keyboard shortcuts could not be edited in:
Preferences → Keyboard shortcuts.
The KeyEvent was being consumed by global application shortcuts before reaching
the shortcut editor in the KeyBindingsTab. As a result, pressing keys did not
update the selected shortcut, and changes were not persisted.
This PR adds:
Steps to test
Screenshots visible changes are not required since UI remains the same.
Mandatory checks
CHANGELOG.md