mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Fix for key events filtered by Win32 IME being passed to end-user
This commit is contained in:
parent
001761ed58
commit
b0eb90593b
@ -218,6 +218,13 @@ static int translateKey(WPARAM wParam, LPARAM lParam)
|
||||
return GLFW_KEY_LEFT_CONTROL;
|
||||
}
|
||||
|
||||
if (wParam == VK_PROCESSKEY)
|
||||
{
|
||||
// IME notify of filtered keys by setting the virtual key-code to VK_PROCESSKEY
|
||||
|
||||
return _GLFW_KEY_INVALID;
|
||||
}
|
||||
|
||||
return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user