mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-26 08:09:11 +00:00
Fix WM_SYSKEYDOWN not being trapped by IME message handling
This would cause Alt + <something> not being trapped if handled by the system IME.
This commit is contained in:
@@ -1087,6 +1087,14 @@ bool WIN_HandleIMEMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM *lParam, SD
|
||||
SDL_DebugIMELog("WM_KEYDOWN normal");
|
||||
}
|
||||
break;
|
||||
case WM_SYSKEYDOWN:
|
||||
if (wParam == VK_PROCESSKEY) {
|
||||
SDL_DebugIMELog("WM_SYSKEYDOWN VK_PROCESSKEY");
|
||||
trap = true;
|
||||
} else {
|
||||
SDL_DebugIMELog("WM_SYSKEYDOWN normal");
|
||||
}
|
||||
break;
|
||||
case WM_INPUTLANGCHANGE:
|
||||
SDL_DebugIMELog("WM_INPUTLANGCHANGE");
|
||||
IME_InputLangChanged(videodata);
|
||||
|
||||
Reference in New Issue
Block a user