From 0b27a47553da63d8b32958d6b01ada55a46d062d Mon Sep 17 00:00:00 2001 From: furo Date: Sun, 25 Aug 2024 19:09:09 +0200 Subject: [PATCH] Don't allow input in console while it is opening/closing --- src/game/client/components/console.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 304590590..1c08e6155 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -377,6 +377,10 @@ bool CGameConsole::CInstance::OnInput(const IInput::CEvent &Event) { bool Handled = false; + // Don't allow input while the console is opening/closing + if(m_pGameConsole->m_ConsoleState == CONSOLE_OPENING || m_pGameConsole->m_ConsoleState == CONSOLE_CLOSING) + return Handled; + auto &&SelectNextSearchMatch = [&](int Direction) { if(!m_vSearchMatches.empty()) {