From 8b1b3464d71037e7376f52040a9f7ec169a19d7e Mon Sep 17 00:00:00 2001 From: "Tony J. White =" Date: Mon, 23 Oct 2006 15:18:05 +0000 Subject: [PATCH] * (bug 2758) Toggling the console while holding keys can put the cgame/ui keycatchers in a bad place since they see a key press for a key that is already in a down state. Simply clearing the down state of all keys as the console is toggled seems like a simple fix. --- code/client/cl_keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index 16ff35d5..14be81e7 100644 --- a/code/client/cl_keys.c +++ b/code/client/cl_keys.c @@ -1070,7 +1070,8 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) { if (!down) { return; } - Con_ToggleConsole_f (); + Con_ToggleConsole_f (); + Key_ClearStates (); return; }