From 578f8e93e01f36186a6199abfac7fd9ceb2a3575 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Mon, 6 Jun 2005 13:30:38 +0000 Subject: handle keys with AltGr properly --- src/jake2/sys/JOGLKBD.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jake2/sys/JOGLKBD.java') diff --git a/src/jake2/sys/JOGLKBD.java b/src/jake2/sys/JOGLKBD.java index 194500f..52d59c0 100644 --- a/src/jake2/sys/JOGLKBD.java +++ b/src/jake2/sys/JOGLKBD.java @@ -197,11 +197,11 @@ 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 { +// if ((ev.getModifiers() & (InputEvent.ALT_MASK | InputEvent.CTRL_MASK)) != 0) { +// key = ev.getKeyCode(); +// } else { key = ev.getKeyChar(); - } +// } if (key >= 'A' && key <= 'Z') key = key - 'A' + 'a'; break; -- cgit v1.2.3