Toggling console with custom bind doesn't print that key on console (fixes #443)

This commit is contained in:
def 2016-05-01 00:26:03 +02:00
parent 72a6e20ba8
commit 915bce38fc

View file

@ -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;