summaryrefslogtreecommitdiffstats
path: root/src/demos/es1
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es1')
-rwxr-xr-xsrc/demos/es1/RedSquare.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index 58b5e01..3992fc7 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -41,7 +41,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;
}
}