summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/RedSquare.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-15 10:59:38 +0000
committerSven Gothel <[email protected]>2009-06-15 10:59:38 +0000
commit6d8e10fdbc4549e8c5e7249e9683dd376bbf35d7 (patch)
treea8cb1e8c9c10be5baddc606b2af289cc9201e798 /src/demos/es2/RedSquare.java
parent224f777f62a8b682184d0cdf8fb8470aabf13977 (diff)
KeyCode is broken on Unix/X11JOGL_2_SANDBOX
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@350 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es2/RedSquare.java')
-rwxr-xr-xsrc/demos/es2/RedSquare.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index d1d2c5d..58c55c8 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -43,7 +43,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
public void keyPressed(KeyEvent e) {
System.out.println(glp+" "+e);
- if(e.getKeyCode()==KeyEvent.VK_Q) {
+ if(e.getKeyChar()=='q') {
quit = true;
}
}