mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
tweak for ESC quitting present mode, notes added to faq
This commit is contained in:
+2
-1
@@ -1495,7 +1495,8 @@ public class PApplet extends Applet
|
||||
|
||||
// if someone else wants to intercept the key, they should
|
||||
// set key to zero (or something besides the ESC).
|
||||
if (key == KeyEvent.VK_ESCAPE) {
|
||||
if ((event.getID() == KeyEvent.KEY_PRESSED) &&
|
||||
(key == KeyEvent.VK_ESCAPE)) {
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,16 @@ X http://dev.processing.org/bugs/show_bug.cgi?id=174
|
||||
X apply fix from toxi to make targa files less picky
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1127999630
|
||||
|
||||
X tweak to only exit from ESC on keyPressed
|
||||
_ probably should just make this a hint() instead
|
||||
|
||||
_ keypressed ref: repeating keys
|
||||
_ also remove "no drawing inside keypressed"
|
||||
|
||||
_ savePath should maybe be appletPath or sketchPath
|
||||
_ because can be used for opening files too
|
||||
_ (i.e. if needing a File object)
|
||||
|
||||
_ add a e2mouseX and e2mouseY
|
||||
_ so that the prev mouse location is still good on mouseReleased
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=170
|
||||
|
||||
Reference in New Issue
Block a user