git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8414
d7cf8633-e32d-0410-b094-
e92efae38249
if (keydest == key_console && key_consoleactive && (!con_closeontoggleconsole.integer || !bind || strncmp(bind, "toggleconsole", strlen("toggleconsole")) || ascii == STRING_COLOR_TAG))
#endif
{
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);
+ }