diff options
Diffstat (limited to 'src/jake2/client/Key.java')
-rw-r--r-- | src/jake2/client/Key.java | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/jake2/client/Key.java b/src/jake2/client/Key.java index 2fe8ed3..0b3e82a 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.2 2004-07-08 15:58:43 hzi Exp $ + * $Id: Key.java,v 1.3 2004-07-08 20:24:29 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -288,9 +288,7 @@ public class Key extends Globals { /** * Called by the system between frames for both key up and key down events. */ - public static void Event(int key, boolean down, long time) { - //System.out.println(key + " " + down); - //return; + public static void Event(int key, boolean down, long time) { String kb; String cmd; @@ -324,14 +322,11 @@ public class Key extends Globals { shift_down = down; // console key is hardcoded, so the user can never unbind it - if (key == '`' || key == '~') { + if (key == '#' || key == '~') { if (!down) return; - try { - Console.ToggleConsole_f.execute(); - } - catch (Exception e) { - } + + Console.ToggleConsole_f.execute(); return; } |