From e947e35cd69bc9ce042737536ab6929d6810e796 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 8 Jun 2022 17:21:20 -0700 Subject: [PATCH] Client: Make sure an K_ESCAPE input event gets forwarded to the menu regardless. --- src/client/entry.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/entry.qc b/src/client/entry.qc index c876d865..864cd6bc 100644 --- a/src/client/entry.qc +++ b/src/client/entry.qc @@ -504,7 +504,7 @@ CSQC_InputEvent(float fEventType, float fKey, float fCharacter, float fDeviceID) setcursormode(FALSE, "gfx/cursor", [0,0,0], 1.0f); } - if (VGUI_Active()) + if (VGUI_Active() && !(fEventType == IE_KEYDOWN && fCharacter == K_ESCAPE)) return (1); else return (0);