aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/client/Key.java5
-rw-r--r--src/jake2/sys/InputListener.java7
2 files changed, 6 insertions, 6 deletions
diff --git a/src/jake2/client/Key.java b/src/jake2/client/Key.java
index f2cfc97..887f3a1 100644
--- a/src/jake2/client/Key.java
+++ b/src/jake2/client/Key.java
@@ -2,7 +2,7 @@
* Key.java
* Copyright (C) 2003
*
- * $Id: Key.java,v 1.8 2005-06-06 13:30:40 hzi Exp $
+ * $Id: Key.java,v 1.9 2005-06-06 18:22:20 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -424,17 +424,14 @@ public class Key extends Globals {
switch (Globals.cls.key_dest) {
case Defines.key_message :
Key.Message(key);
- key_repeats[key] = 0;
break;
case Defines.key_menu :
Menu.Keydown(key);
- key_repeats[key] = 0;
break;
case Defines.key_game :
case Defines.key_console :
Key.Console(key);
- key_repeats[key] = 0;
break;
default :
Com.Error(Defines.ERR_FATAL, "Bad cls.key_dest");
diff --git a/src/jake2/sys/InputListener.java b/src/jake2/sys/InputListener.java
index 197cf67..8cbe2ae 100644
--- a/src/jake2/sys/InputListener.java
+++ b/src/jake2/sys/InputListener.java
@@ -2,7 +2,7 @@
* InputListener.java
* Copyright (C) 2004
*
- * $Id: InputListener.java,v 1.5 2005-06-06 13:30:37 hzi Exp $
+ * $Id: InputListener.java,v 1.6 2005-06-06 18:22:20 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -52,7 +52,9 @@ public final class InputListener implements KeyListener, MouseListener,
}
public void keyPressed(KeyEvent e) {
- addEvent(new Jake2InputEvent(Jake2InputEvent.KeyPress, e));
+ if (!((e.getModifiersEx() & InputEvent.ALT_GRAPH_DOWN_MASK) != 0)) {
+ addEvent(new Jake2InputEvent(Jake2InputEvent.KeyPress, e));
+ }
}
public void keyReleased(KeyEvent e) {
@@ -62,6 +64,7 @@ public final class InputListener implements KeyListener, MouseListener,
public void keyTyped(KeyEvent e) {
if ((e.getModifiersEx() & InputEvent.ALT_GRAPH_DOWN_MASK) != 0) {
addEvent(new Jake2InputEvent(Jake2InputEvent.KeyPress, e));
+ addEvent(new Jake2InputEvent(Jake2InputEvent.KeyRelease, e));
}
}