From 47059d15c524ae95f272535c8fb53687ae48e945 Mon Sep 17 00:00:00 2001 From: tjw Date: Mon, 23 Oct 2006 15:18:05 +0000 Subject: * (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. git-svn-id: svn://svn.icculus.org/quake3/trunk@951 edf5b092-35ff-0310-97b2-ce42778d08ea --- 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 16ff35d..14be81e 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; } -- cgit v1.2.3