From: havoc Date: Fri, 3 Jun 2005 11:05:25 +0000 (+0000) Subject: added ctrl-escape hotkey for console (I know I coded this before... but apparently... X-Git-Tag: xonotic-v0.1.0preview~4797 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7d02bd851416f804407dcb98a907a2487568fa05;p=xonotic%2Fdarkplaces.git 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 --- 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);