Skip to content

Commit d9208f3

Browse files
feiknamefacchinm
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 0579696 commit d9208f3

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
@@ -736,16 +736,16 @@ private JMenu buildToolsMenu() {
736736

737737
addInternalTools(toolsMenu);
738738

739-
JMenuItem item = newJMenuItemShift(tr("Serial Monitor"), 'M');
739+
JMenuItem item = newJMenuItemShift(tr("Manage Libraries..."), 'O');
740+
item.addActionListener(e -> base.openLibraryManager("", ""));
741+
toolsMenu.add(item);
742+
743+
item = newJMenuItemShift(tr("Serial Monitor"), 'M');
740744
item.addActionListener(e -> handleSerial());
741745
toolsMenu.add(item);
742746

743747
item = newJMenuItemShift(tr("Serial Plotter"), 'L');
744-
item.addActionListener(new ActionListener() {
745-
public void actionPerformed(ActionEvent e) {
746-
handlePlotter();
747-
}
748-
});
748+
item.addActionListener(e -> handlePlotter());
749749
toolsMenu.add(item);
750750

751751
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)