]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added ctrl-escape hotkey for console (I know I coded this before... but apparently...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Jun 2005 11:05:25 +0000 (11:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Jun 2005 11:05:25 +0000 (11:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5385 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index ea86917733f75a11f129af4a9de4dce75a96f3ff..82c3edf6fa47501bec130fc30620157d8746a349 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -867,6 +867,12 @@ Key_Event (int key, char ascii, qboolean down)
        if (key == K_ESCAPE) {
                if (!down)
                        return;
+               // ctrl-escape is a safety measure
+               if (ctrl_down)
+               {
+                       Con_ToggleConsole_f ();
+                       return;
+               }
                switch (key_dest) {
                        case key_message:
                                Key_Message (key, ascii);