From 67575888bba048836755d18f644b8f93328924f5 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 16 Jul 2008 09:24:37 +0000 Subject: [PATCH] fix console escape togglemenu git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8414 d7cf8633-e32d-0410-b094-e92efae38249 --- keys.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.39.2