mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
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:
commit
8e16113428
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue