Skip to content

Commit f315208

Browse files
committed
Add shift+click to serial monitor button on the toolbar to open serial plotter
1 parent 76dfd0a commit f315208

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/src/processing/app/EditorToolbar.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
6262
* Titles for each button when the shift key is pressed.
6363
*/
6464
private static final String[] titleShift = {
65-
tr("Verify"), tr("Upload Using Programmer"), tr("New"), tr("Open"), tr("Save As..."), tr("Serial Monitor")
65+
tr("Verify"), tr("Upload Using Programmer"), tr("New"), tr("Open"), tr("Save As..."), tr("Serial Plotter")
6666
};
6767

6868
private static final int BUTTON_COUNT = title.length;
@@ -500,7 +500,11 @@ private void handleSelectionPressed(int sel, boolean isShiftDown, int x, int y)
500500
break;
501501

502502
case SERIAL:
503-
editor.handleSerial();
503+
if (isShiftDown) {
504+
editor.handlePlotter();
505+
} else {
506+
editor.handleSerial();
507+
}
504508
break;
505509

506510
default:

0 commit comments

Comments
 (0)