tweak for ESC quitting present mode, notes added to faq

This commit is contained in:
benfry
2005-10-20 15:09:59 +00:00
parent f35aba680d
commit 0004b3faa8
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -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();
}
}
+10
View File
@@ -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