]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
allow escape to togglemenu when in fullscreen console
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index cfd62813b12f54082f7c580aa333416093d12a04..5b1aad5fcb7a82030d87c5c4fc20672bbf03b887 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -839,7 +839,7 @@ Key_Event (int key, char ascii, qboolean down)
                // key_menu - go to parent menu (or key_game)
                // key_game - open menu
                // in all modes shift-escape toggles console
-               if (key_consoleactive || keydown[K_SHIFT])
+               if ((key_consoleactive & KEY_CONSOLEACTIVE_USER) || keydown[K_SHIFT])
                {
                        Con_ToggleConsole_f ();
                        return;