From cb8d4bf93da1ec836603ee6a65a8722270fc99fb Mon Sep 17 00:00:00 2001 From: nullsystem <15316579+nullsystem@users.noreply.github.com> Date: Wed, 2 Oct 2024 23:57:16 +0100 Subject: [PATCH] hideconsole on ESC * Allow ESC to be used for hideconsole, mostly to improve ESC behavior when in-game, have console opened, and on not root state * fixes #581 --- mp/src/game/client/cdll_client_int.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mp/src/game/client/cdll_client_int.cpp b/mp/src/game/client/cdll_client_int.cpp index 63357f3e8..5cce039cc 100644 --- a/mp/src/game/client/cdll_client_int.cpp +++ b/mp/src/game/client/cdll_client_int.cpp @@ -2653,6 +2653,7 @@ bool CHLClient::HandleUiToggle() #else #ifdef NEO // NEO NOTE (nullsystem): Required for the sub-panels of override UI to utilize ESCAPE key properly + engine->ClientCmd_Unrestricted("hideconsole"); return NeoRootCaptureESC(); #else return false;