Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/arduino/Arduino.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2020-12-04 19:06:27 +0300
committerGitHub <noreply@github.com>2020-12-04 19:06:27 +0300
commit350e825217d026c186f570b828afa133d3ef88fc (patch)
treeb2fd5d0bb9183d078c1e922c39be2a253600be9c
parent76dfd0acc21f08efe3ac1d7e1c356182a1458ed0 (diff)
parentf315208495aab7ac545b1fb73f31927aed34c862 (diff)
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
-rw-r--r--app/src/processing/app/EditorToolbar.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/src/processing/app/EditorToolbar.java b/app/src/processing/app/EditorToolbar.java
index d37d0cc96..a2a9b804e 100644
--- a/app/src/processing/app/EditorToolbar.java
+++ b/app/src/processing/app/EditorToolbar.java
@@ -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:
- editor.handleSerial();
+ if (isShiftDown) {
+ editor.handlePlotter();
+ } else {
+ editor.handleSerial();
+ }
break;
default: