Skip to content

Commit 5490b96

Browse files
author
Federico Fissore
committed
SHIFT-save (upper toolbar) triggers "save as". Fixes #2220
1 parent c84fb7f commit 5490b96

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
@@ -43,7 +43,7 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
4343

4444
/** Titles for each button when the shift key is pressed. */
4545
static final String titleShift[] = {
46-
_("Verify"), _("Upload Using Programmer"), _("New"), _("Open in Another Window"), _("Save"), _("Serial Monitor")
46+
_("Verify"), _("Upload Using Programmer"), _("New"), _("Open in Another Window"), _("Save As..."), _("Serial Monitor")
4747
};
4848

4949
static final int BUTTON_COUNT = title.length;
@@ -342,7 +342,11 @@ public void mousePressed(MouseEvent e) {
342342
break;
343343

344344
case SAVE:
345-
editor.handleSave(false);
345+
if (e.isShiftDown()) {
346+
editor.handleSaveAs();
347+
} else {
348+
editor.handleSave(false);
349+
}
346350
break;
347351

348352
case EXPORT:

0 commit comments

Comments
 (0)