Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 6 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /