Skip to content

Commit 38e23a7

Browse files
feiknamecmaglie
authored andcommitted
Move "Manage libraries..." to the "Tools" menu
It's easier to access it there Also, a shortcut was added to it: Ctrl + Shift + O My original plan was for it to be "Control + Shift + K", but for some reason it doesn't work in my Xubuntu 17.04. Fixes #6335
1 parent 7cae94e commit 38e23a7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/src/processing/app/Editor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,16 +739,16 @@ private JMenu buildToolsMenu() {
739739

740740
addInternalTools(toolsMenu);
741741

742-
JMenuItem item = newJMenuItemShift(tr("Serial Monitor"), 'M');
742+
JMenuItem item = newJMenuItemShift(tr("Manage Libraries..."), 'O');
743+
item.addActionListener(e -> base.openLibraryManager("", ""));
744+
toolsMenu.add(item);
745+
746+
item = newJMenuItemShift(tr("Serial Monitor"), 'M');
743747
item.addActionListener(e -> handleSerial());
744748
toolsMenu.add(item);
745749

746750
item = newJMenuItemShift(tr("Serial Plotter"), 'L');
747-
item.addActionListener(new ActionListener() {
748-
public void actionPerformed(ActionEvent e) {
749-
handlePlotter();
750-
}
751-
});
751+
item.addActionListener(e -> handlePlotter());
752752
toolsMenu.add(item);
753753

754754
addTools(toolsMenu, BaseNoGui.getToolsFolder());

app/src/processing/app/helpers/Keys.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static KeyStroke ctrlShift(int keyCode) {
220220
}
221221

222222
/**
223-
* Creates a KeyCode for the "menu shortcut" + shift + the key passed in. By
223+
* Creates a KeyCode for the "menu shortcut" + alt + the key passed in. By
224224
* default, the menu shortcut is the ctrl key (hence the method name), but
225225
* platforms might use a different key (like the Apple key on OSX).
226226
*

0 commit comments

Comments
 (0)