From: divverent Date: Wed, 16 Jul 2008 09:24:37 +0000 (+0000) Subject: fix console escape togglemenu X-Git-Tag: xonotic-v0.1.0preview~2167 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=67575888bba048836755d18f644b8f93328924f5;p=xonotic%2Fdarkplaces.git fix console escape togglemenu git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8414 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index 8ccd5de0..a65adba8 100644 --- 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; }