Skip to content

Add Shift+click on serial monitor toolbar button to open serial plotter #11028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions app/src/processing/app/EditorToolbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
* Titles for each button when the shift key is pressed.
*/
private static final String[] titleShift = {
tr("Verify"), tr("Upload Using Programmer"), tr("New"), tr("Open"), tr("Save As..."), tr("Serial Monitor")
tr("Verify"), tr("Upload Using Programmer"), tr("New"), tr("Open"), tr("Save As..."), tr("Serial Plotter")
};

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

case SERIAL:
editor.handleSerial();
if (isShiftDown) {
editor.handlePlotter();
} else {
editor.handleSerial();
}
break;

default:
Expand Down