mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
X much reworking for run/present modes
X run/present modes are getting confused X [esc] to exit presentation mode X remove 'edit' menu because it's worthless
This commit is contained in:
@@ -342,14 +342,22 @@ public class PdeEditorButtons extends Panel /*implements ActionListener*/ {
|
||||
switch (currentSelection) {
|
||||
|
||||
case RUN:
|
||||
if (e.shiftDown()) {
|
||||
editor.doPresent();
|
||||
} else {
|
||||
editor.doRun(false);
|
||||
}
|
||||
editor.doRun(e.shiftDown());
|
||||
//if (e.shiftDown()) {
|
||||
//editor.doPresent();
|
||||
//} else {
|
||||
//editor.doRun(false);
|
||||
//}
|
||||
break;
|
||||
|
||||
case STOP: setState(RUN, INACTIVE, true); editor.doStop(); break;
|
||||
case STOP:
|
||||
setState(RUN, INACTIVE, true);
|
||||
if (editor.presenting) {
|
||||
editor.doClose();
|
||||
} else {
|
||||
editor.doStop();
|
||||
}
|
||||
break;
|
||||
//case CLOSE: editor.doClose(); break;
|
||||
|
||||
//case OPEN: editor.doOpen(); break;
|
||||
|
||||
Reference in New Issue
Block a user