From a7fd0829346419680245ab89babb1070ac353fdb Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 8 Jan 2014 18:57:57 +0100 Subject: [PATCH] HUD config: release mouse buttons and reset modifier keys on menu open --- qcsrc/client/hud_config.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index 1836ba23f..c5ead2256 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -661,7 +661,11 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) // block any input while a menu dialog is fading // don't block mousepos read as it leads to cursor jumps in the interaction with the menu if(autocvar__menu_alpha) + { + hudShiftState = 0; + mouseClicked = 0; return true; + } // allow console bind to work string con_keys; -- 2.39.2