Fix IME not being deactivated when editor is closed

Previously the IME was not deactivated when the editor is closed, so `SDL_TEXTINPUT` events where still being reported ingame after exiting the editor.
This commit is contained in:
Robert Müller 2022-10-21 21:31:21 +02:00
parent 75326e8393
commit c0da3b93e4

View file

@ -3252,7 +3252,10 @@ void CClient::Run()
}
}
else if(m_EditorActive)
{
Input()->SetIMEState(false);
m_EditorActive = false;
}
Update();
int64_t Now = time_get();