From 0004b3faa824dceb4da62696e77220d222ac7159 Mon Sep 17 00:00:00 2001 From: benfry Date: Thu, 20 Oct 2005 15:09:59 +0000 Subject: [PATCH] tweak for ESC quitting present mode, notes added to faq --- core/PApplet.java | 3 ++- core/todo.txt | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/core/PApplet.java b/core/PApplet.java index de81d2619..e00196148 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -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(); } } diff --git a/core/todo.txt b/core/todo.txt index d86deb998..ce22102a1 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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