mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Don't allow input in console while it is opening/closing
This commit is contained in:
parent
be2e49e1f6
commit
0b27a47553
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue