From 252832999fa43bce63ca4b643fab5d9dd51fccc4 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Thu, 8 Jul 2004 20:24:48 +0000 Subject: import of Jake2 version cebit --- src/jake2/client/Key.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/jake2/client/Key.java') 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; } -- cgit v1.2.3