]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix console escape togglemenu
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 16 Jul 2008 09:24:37 +0000 (09:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 16 Jul 2008 09:24:37 +0000 (09:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8414 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index 8ccd5de0fdb3129585370788037f8e9f72af294d..a65adba8f1154225aa6281b79d37f843324e6a39 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1026,8 +1026,12 @@ Key_Event (int key, char ascii, qboolean down)
        if (keydest == key_console && key_consoleactive && (!con_closeontoggleconsole.integer || !bind || strncmp(bind, "toggleconsole", strlen("toggleconsole")) || ascii == STRING_COLOR_TAG))
 #endif
        {
-               if(down)
-                       Key_Console (key, ascii);
+               if(down) {
+                       if(key == K_ESCAPE)
+                               MR_ToggleMenu_f();
+                       else
+                               Key_Console (key, ascii);
+               }
                return;
        }