From: terencehill Date: Mon, 23 Feb 2015 15:25:08 +0000 (+0100) Subject: Close quickmenu activating the menu items with numbers, unless CTRL is pressed X-Git-Tag: xonotic-v0.8.2~1987^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4138f7fbb7103653eacaf94d307db45e742beb72;p=xonotic%2Fxonotic-data.pk3dir.git Close quickmenu activating the menu items with numbers, unless CTRL is pressed --- 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) {