Don't keep enabling input in menu all the time (fixes #706)

This commit is contained in:
def 2017-07-15 15:37:05 +02:00
parent 78dc5aa959
commit 9bf84fd4be

View file

@ -1651,7 +1651,8 @@ int CMenus::Render()
void CMenus::SetActive(bool Active)
{
Input()->SetIMEState(Active);
if(Active != m_MenuActive)
Input()->SetIMEState(Active);
m_MenuActive = Active;
#if defined(__ANDROID__)
UI()->AndroidShowScreenKeys(!m_MenuActive && !m_pClient->m_pControls->m_UsingGamepad);