aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-28 14:09:56 +0100
committerSven Gothel <[email protected]>2012-10-28 14:09:56 +0100
commitdd0b389ec4c9c13dff155394c485828ba0bb851c (patch)
tree3809d5e1492346a717f5a5ebcaf799aa9ab90e90
parentf47e06cdfe6b97faacec84ec1920a08b007dc349 (diff)
NEWTKBD: Handle VK_SPACE
-rw-r--r--src/jake2/sys/NEWTKBD.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/sys/NEWTKBD.java b/src/jake2/sys/NEWTKBD.java
index 6b53254..abf0988 100644
--- a/src/jake2/sys/NEWTKBD.java
+++ b/src/jake2/sys/NEWTKBD.java
@@ -186,9 +186,9 @@ final public class NEWTKBD extends KBD
case KeyEvent.VK_DEAD_ACUTE:
case KeyEvent.VK_CIRCUMFLEX:
case KeyEvent.VK_DEAD_CIRCUMFLEX:
- case KeyEvent.VK_BACK_QUOTE:
- key='`';
- break;
+ case KeyEvent.VK_BACK_QUOTE: key='`'; break;
+ case KeyEvent.VK_SPACE: key = Key.K_SPACE; break;
+
default:
if( KeyEvent.VK_0 <= code && code <= KeyEvent.VK_9 ) {
key = code - KeyEvent.VK_0 + '0';