mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-01 21:52:12 +01:00
Add shift+click to serial monitor button on the toolbar to open serial plotter
This commit is contained in:
parent
76dfd0acc2
commit
f315208495
@ -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;
|
||||
@ -500,7 +500,11 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
|
||||
break;
|
||||
|
||||
case SERIAL:
|
||||
if (isShiftDown) {
|
||||
editor.handlePlotter();
|
||||
} else {
|
||||
editor.handleSerial();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user