diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m index 19ee5932019bf..404577ed488dc 100644 --- a/src/video/cocoa/SDL_cocoakeyboard.m +++ b/src/video/cocoa/SDL_cocoakeyboard.m @@ -130,9 +130,6 @@ - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replaceme _selectedRange = selectedRange; _markedRange = NSMakeRange(0, [aString length]); - // This key event was consumed by the IME - [self clearPendingKey]; - SDL_SendEditingText([aString UTF8String], (int)selectedRange.location, (int)selectedRange.length); @@ -145,9 +142,6 @@ - (void)unmarkText { _markedText = nil; - // This key event was consumed by the IME - [self clearPendingKey]; - SDL_SendEditingText("", 0, 0); } diff --git a/src/video/windows/SDL_windowskeyboard.c b/src/video/windows/SDL_windowskeyboard.c index 5f934e021ee0c..c733e8a035e0e 100644 --- a/src/video/windows/SDL_windowskeyboard.c +++ b/src/video/windows/SDL_windowskeyboard.c @@ -1014,7 +1014,6 @@ bool WIN_HandleIMEMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM *lParam, SD case WM_KEYDOWN: if (wParam == VK_PROCESSKEY) { SDL_DebugIMELog("WM_KEYDOWN VK_PROCESSKEY\n"); - trap = true; } else { SDL_DebugIMELog("WM_KEYDOWN normal\n"); }