Merge pull request #8807 from furo321/no-input-while-opening

Don't allow input in console while it is opening/closing
This commit is contained in:
Dennis Felsing 2024-08-25 20:59:00 +00:00 committed by GitHub
commit 8e16113428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -377,6 +377,10 @@ bool CGameConsole::CInstance::OnInput(const IInput::CEvent &Event)
{ {
bool Handled = false; 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) { auto &&SelectNextSearchMatch = [&](int Direction) {
if(!m_vSearchMatches.empty()) if(!m_vSearchMatches.empty())
{ {