diff options
author | Holger Zickner <[email protected]> | 2005-06-06 13:32:06 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2005-06-06 13:32:06 +0000 |
commit | 684416e41caa0cf877bbdb2b70d914970d44c7cb (patch) | |
tree | 15608533a7fd76d4eff80a6313885ff7d33f1d6e /src/jake2/sys | |
parent | 578f8e93e01f36186a6199abfac7fd9ceb2a3575 (diff) |
handle keys with AltGr properly
Diffstat (limited to 'src/jake2/sys')
-rw-r--r-- | src/jake2/sys/JOGLKBD.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/jake2/sys/JOGLKBD.java b/src/jake2/sys/JOGLKBD.java index 52d59c0..5f08133 100644 --- a/src/jake2/sys/JOGLKBD.java +++ b/src/jake2/sys/JOGLKBD.java @@ -197,11 +197,8 @@ final public class JOGLKBD extends KBD case KeyEvent.VK_DEAD_CIRCUMFLEX: key = '`'; break; default: -// if ((ev.getModifiers() & (InputEvent.ALT_MASK | InputEvent.CTRL_MASK)) != 0) { -// key = ev.getKeyCode(); -// } else { - key = ev.getKeyChar(); -// } + key = ev.getKeyChar(); + if (key >= 'A' && key <= 'Z') key = key - 'A' + 'a'; break; |