Skip to content

Commit

Permalink
Enable key events during IME composition
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2025
1 parent 2d37903 commit 395671f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/video/cocoa/SDL_cocoakeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -145,9 +142,6 @@ - (void)unmarkText
{
_markedText = nil;

// This key event was consumed by the IME
[self clearPendingKey];

SDL_SendEditingText("", 0, 0);
}

Expand Down
1 change: 0 additions & 1 deletion src/video/windows/SDL_windowskeyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 395671f

Please sign in to comment.