Skip to content

Commit 350e825

Browse files
authored
Merge pull request #11028 from n-elia/add-shift-click-to-serial-monitor-button-on-toolbar
Add Shift+click on serial monitor toolbar button to open serial plotter
2 parents 76dfd0a + f315208 commit 350e825

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)