mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Toggling console with custom bind doesn't print that key on console (fixes #443)
This commit is contained in:
parent
72a6e20ba8
commit
915bce38fc
|
@ -215,8 +215,8 @@ void CGameConsole::CInstance::OnInput(IInput::CEvent Event)
|
|||
}
|
||||
if(Event.m_Flags&IInput::FLAG_RELEASE && Event.m_Key == KEY_LSHIFT)
|
||||
{
|
||||
m_ReverseTAB = false;
|
||||
Handled = true;
|
||||
m_ReverseTAB = false;
|
||||
Handled = true;
|
||||
}
|
||||
|
||||
if(!Handled)
|
||||
|
@ -613,7 +613,7 @@ void CGameConsole::OnMessage(int MsgType, void *pRawMsg)
|
|||
|
||||
bool CGameConsole::OnInput(IInput::CEvent Event)
|
||||
{
|
||||
if(m_ConsoleState == CONSOLE_CLOSED)
|
||||
if(m_ConsoleState != CONSOLE_OPEN)
|
||||
return false;
|
||||
if((Event.m_Key >= KEY_F1 && Event.m_Key <= KEY_F12) || (Event.m_Key >= KEY_F13 && Event.m_Key <= KEY_F24))
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue