Skip to content

Commit 8e46928

Browse files
committed
After checking the bug '1248 Key bindings not modified' , it was Identified que the creation of the hashmap list 'defKeyBinds' that sets the standard keyboard shortcuts , the feature 'Open folder' was not included in the 'defineDefaultKeyBindings ( )' method in 'JabRefPreferences' class .
1 parent 1986f9f commit 8e46928

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/net/sf/jabref/JabRefPreferences.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -885,11 +885,10 @@ public KeyStroke getKey(String bindName) {
885885
// So, if this happens, we add the default value to the current
886886
// hashmap, so this doesn't happen again, and so this binding
887887
// will appear in the KeyBindingsDialog.
888+
Globals.logger("Could not get key binding for \"" + bindName + "\"");
889+
s = "Not associated";
888890
keyBinds.put(bindName, s);
889891
}
890-
if (s == null) {
891-
Globals.logger("Could not get key binding for \"" + bindName + "\"");
892-
}
893892

894893
if (Globals.ON_MAC) {
895894
return getKeyForMac(KeyStroke.getKeyStroke(s));

0 commit comments

Comments
 (0)