mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #1539 from def-/pr-esc-popup
Escape during popup: Only make popup disappear
This commit is contained in:
commit
72200a4e09
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue