mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +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;
|
||||
|
||||
addInternalTools(menu);
|
||||
|
||||
item = newJMenuItemShift("Serial Monitor", 'M');
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleSerial();
|
||||
}
|
||||
});
|
||||
menu.add(item);
|
||||
|
||||
addTools(menu, Base.getToolsFolder());
|
||||
File sketchbookTools = new File(Base.getSketchbookFolder(), "tools");
|
||||
addTools(menu, sketchbookTools);
|
||||
|
Loading…
x
Reference in New Issue
Block a user