From 3febe7ce4218c0063b3b7f3a98276cc610070aae Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 23 Sep 2009 22:59:55 +0000 Subject: [PATCH] Adding a serial monitor menu item and keyboard shortcut (control-shift-m / command-shift-m). --- app/src/processing/app/Editor.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 392efdc38..50d92ecd2 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -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);