mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
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.
This commit is contained in:
parent
f8621b0421
commit
a3f59fae91
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user