From 7d02bd851416f804407dcb98a907a2487568fa05 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 3 Jun 2005 11:05:25 +0000 Subject: [PATCH] added ctrl-escape hotkey for console (I know I coded this before... but apparently it never got committed) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5385 d7cf8633-e32d-0410-b094-e92efae38249 --- keys.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keys.c b/keys.c index ea869177..82c3edf6 100644 --- 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); -- 2.39.2