diff options
Diffstat (limited to 'src/demos/es2/RedSquare.java')
-rwxr-xr-x | src/demos/es2/RedSquare.java | 2 |
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; } } |