1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix a bug that IME did not disappeared after typing korean on osx

This commit is contained in:
Chanwoong Kim
2016-03-03 22:17:04 +09:00
parent da631e9009
commit 6df34c13aa

View File

@@ -709,6 +709,10 @@ void platform_process_messages()
gTextInputCompositionActive = ((e.edit.length != 0 || strlen(e.edit.text) != 0) && gTextInputComposition[0] != 0);
break;
case SDL_TEXTINPUT:
// will receive an `SDL_TEXTINPUT` event when a composition is committed.
// so, set gTextInputCompositionActive to false.
gTextInputCompositionActive = false;
if (gTextInputLength < gTextInputMaxLength && gTextInput){
// HACK ` will close console, so don't input any text
if (e.text.text[0] == '`' && gConsoleOpen)