Client: Make sure an K_ESCAPE input event gets forwarded to the menu regardless.

This commit is contained in:
Marco Cawthorne 2022-06-08 17:21:20 -07:00
parent 5e9a65924a
commit e947e35cd6
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -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);