From a3f59fae91b4f7cbc9b8278a4c470ad6f3fea95a Mon Sep 17 00:00:00 2001 From: Flavio Monteiro Date: Fri, 15 Sep 2017 16:23:43 -0300 Subject: [PATCH] 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. --- app/src/processing/app/Base.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 31d4ca31d..0e601965e 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -1075,6 +1075,10 @@ public class Base { importMenu.removeAll(); JMenuItem menu = new JMenuItem(tr("Manage Libraries...")); + // Ctrl+Shift+I on Windows and Linux, Command+Shift+I on macOS + menu.setAccelerator(KeyStroke.getKeyStroke('I', + Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | + ActionEvent.SHIFT_MASK)); menu.addActionListener(e -> openLibraryManager("", "")); importMenu.add(menu); importMenu.addSeparator();