From: terencehill Date: Sun, 19 Dec 2010 20:57:37 +0000 (+0100) Subject: CTRL-BACKSPACE to instantly exit from hud config X-Git-Tag: xonotic-v0.5.0~343 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a5b38503eb215d1fd06fde32dca3278eaba79956;p=xonotic%2Fxonotic-data.pk3dir.git CTRL-BACKSPACE to instantly exit from hud config --- 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)