close active in-game console with ESC key
diff --git a/src/engine/client/cl_keys.cpp b/src/engine/client/cl_keys.cpp
index 4d99c56..54ee3fd 100644
--- a/src/engine/client/cl_keys.cpp
+++ b/src/engine/client/cl_keys.cpp
@@ -1316,6 +1316,14 @@ void CL_KeyEvent( sint key, sint down, sint time )
// escape is always handled special
if( key == K_ESCAPE && down )
{
+ //If console is active then ESC should close console
+ if( cls.keyCatchers & KEYCATCH_CONSOLE )
+ {
+ Con_ToggleConsole_f();
+ Key_ClearStates();
+ return;
+ }
+
if( cls.keyCatchers & KEYCATCH_MESSAGE )
{
// clear message mode
GitHub
sha: f7fedd5c