Merge pull request #1539 from def-/pr-esc-popup

Escape during popup: Only make popup disappear
This commit is contained in:
Dennis Felsing 2019-03-28 23:38:00 +01:00 committed by GitHub
commit 72200a4e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1749,7 +1749,8 @@ bool CMenus::OnInput(IInput::CEvent e)
if(e.m_Key == KEY_ESCAPE)
{
m_EscapePressed = true;
SetActive(!IsActive());
if(m_Popup == POPUP_NONE)
SetActive(!IsActive());
return true;
}
}