aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_keys.c
diff options
context:
space:
mode:
authortjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-10-23 15:18:05 +0000
committertjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-10-23 15:18:05 +0000
commit47059d15c524ae95f272535c8fb53687ae48e945 (patch)
tree7ffba3a620e3c30a1c18138e8abf8f8a1760d5b4 /code/client/cl_keys.c
parentc013c32abb63793f7e24ea936a210704c80c5079 (diff)
downloadioquake3-aero-47059d15c524ae95f272535c8fb53687ae48e945.tar.gz
ioquake3-aero-47059d15c524ae95f272535c8fb53687ae48e945.zip
* (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
Diffstat (limited to 'code/client/cl_keys.c')
-rw-r--r--code/client/cl_keys.c3
1 files changed, 2 insertions, 1 deletions
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;
}