1
0
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:
David A. Mellis 2009-09-23 22:59:55 +00:00
parent 66e4b9c0cd
commit 3febe7ce42

View File

@ -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);