fix requestFocus() issue that was causing assertion failure

This commit is contained in:
benfry
2010-06-20 19:59:28 +00:00
parent 13fc1804e5
commit 1bebf781f3
2 changed files with 10 additions and 4 deletions
+7 -4
View File
@@ -1507,8 +1507,9 @@ public class PApplet extends Applet
// screen and the component is valid. The OpenGL renderer will
// request focus for its canvas inside beginDraw().
// http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/FocusSpec.html
//println("requesting focus");
requestFocus();
// Disabling for 0185, because it causes an assertion failure on OS X
// http://code.google.com/p/processing/issues/detail?id=258
// requestFocus();
}
// wait for update & paint to happen before drawing next frame
@@ -7393,8 +7394,10 @@ public class PApplet extends Applet
}
}
applet.requestFocus(); // ask for keydowns
//System.out.println("exiting main()");
// Disabling for 0185, because it causes an assertion failure on OS X
// http://code.google.com/p/processing/issues/detail?id=258
// (Although this doesn't seem to be the one that was causing problems.)
//applet.requestFocus(); // ask for keydowns
}
+3
View File
@@ -8,6 +8,9 @@ o svg issue with implicit path command
o http://dev.processing.org/bugs/show_bug.cgi?id=1561
o http://code.google.com/p/processing/issues/detail?id=257
X appears to be faulty code
X remove call to requestFocus() that broke the ColorSelector (and Editor)
X and was also breaking some applets
X http://code.google.com/p/processing/issues/detail?id=258
shape/svg work
X fix for adobe illustrator-mangled svg id names with hex characters