mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Adding a serial monitor menu item and keyboard shortcut (control-shift-m / command-shift-m).
This commit is contained in:
parent
66e4b9c0cd
commit
3febe7ce42
@ -608,6 +608,15 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
JMenuItem item;
|
JMenuItem item;
|
||||||
|
|
||||||
addInternalTools(menu);
|
addInternalTools(menu);
|
||||||
|
|
||||||
|
item = newJMenuItemShift("Serial Monitor", 'M');
|
||||||
|
item.addActionListener(new ActionListener() {
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
handleSerial();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
menu.add(item);
|
||||||
|
|
||||||
addTools(menu, Base.getToolsFolder());
|
addTools(menu, Base.getToolsFolder());
|
||||||
File sketchbookTools = new File(Base.getSketchbookFolder(), "tools");
|
File sketchbookTools = new File(Base.getSketchbookFolder(), "tools");
|
||||||
addTools(menu, sketchbookTools);
|
addTools(menu, sketchbookTools);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user