* (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

View file

@ -1071,6 +1071,7 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) {
return;
}
Con_ToggleConsole_f ();
Key_ClearStates ();
return;
}