From a5b38503eb215d1fd06fde32dca3278eaba79956 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 19 Dec 2010 21:57:37 +0100 Subject: [PATCH] CTRL-BACKSPACE to instantly exit from hud config --- qcsrc/client/hud_config.qc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index 5fca9d28f..657f5bd14 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -625,6 +625,13 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) menu_enabled_time = time; localcmd("menu_showhudexit\n"); } + else if(nPrimary == K_BACKSPACE && hudShiftState & S_CTRL) + { + if (bInputType == 1) + return true; + if (!menu_enabled) + cvar_set("_hud_configure", "0"); + } else if(nPrimary == K_TAB && hudShiftState & S_CTRL) // select and highlight another panel { if (bInputType == 1 || mouseClicked) -- 2.39.2