Skip to content

Commit b57d2fa

Browse files
committed
Display the keyboard shortcut tip on both "Manage Libraries..."
This commit adds the Menu+Shift+I shortcut to the remaining menu entry in Base.java. When the shortcut is called, the menu entry from Base.java is the one that will be called.
1 parent 3fd06ed commit b57d2fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: app/src/processing/app/Base.java

+4
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,10 @@ public void rebuildImportMenu(JMenu importMenu) {
10701070
importMenu.removeAll();
10711071

10721072
JMenuItem menu = new JMenuItem(tr("Manage Libraries..."));
1073+
// Ctrl+Shift+I on Windows and Linux, Command+Shift+I on macOS
1074+
menu.setAccelerator(KeyStroke.getKeyStroke('I',
1075+
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() |
1076+
ActionEvent.SHIFT_MASK));
10731077
menu.addActionListener(e -> openLibraryManager("", ""));
10741078
importMenu.add(menu);
10751079
importMenu.addSeparator();

0 commit comments

Comments
 (0)