From 4138f7fbb7103653eacaf94d307db45e742beb72 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 23 Feb 2015 16:25:08 +0100 Subject: [PATCH] Close quickmenu activating the menu items with numbers, unless CTRL is pressed --- qcsrc/client/hud.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index b089672e6..1ed7ffe5e 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4872,7 +4872,9 @@ bool HUD_QuickMenu_InputEvent(float bInputType, float nPrimary, float nSecondary { if (bInputType == 1) return true; - HUD_QuickMenu_ActionForNumber(stof(chr2str(nPrimary))); + float f = HUD_QuickMenu_ActionForNumber(stof(chr2str(nPrimary))); + if(f && !(hudShiftState & S_CTRL)) + HUD_QuickMenu_Close(); } if(nPrimary == K_MOUSE1) { -- 2.39.2