* (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.
This commit is contained in:
Tony J. White = 2006-10-23 15:18:05 +00:00
parent fe3e8ba879
commit 8b1b3464d7
1 changed files with 2 additions and 1 deletions

View File

@ -1070,7 +1070,8 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) {
if (!down) { if (!down) {
return; return;
} }
Con_ToggleConsole_f (); Con_ToggleConsole_f ();
Key_ClearStates ();
return; return;
} }