1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Merge pull request #3076 from kexplo/feature/fix-osx-hangul-ime

Fix a bug that cannot delete characters after typing korean on osx
This commit is contained in:
Ted John
2016-03-03 15:14:57 +00:00

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)
@@ -869,6 +873,7 @@ void platform_stop_text_input()
{
SDL_StopTextInput();
gTextInput = NULL;
gTextInputCompositionActive = false;
}
static void platform_unload_cursors()