1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-27 04:28:52 -05:00

Fix keys filtered by IME being passed to callback

Closes #651.
This commit is contained in:
ocornut 2015-11-29 16:55:08 +00:00 committed by Camilla Berglund
parent 4eb7cbac47
commit 3c1a83d61f

View File

@ -329,6 +329,13 @@ static int translateKey(WPARAM wParam, LPARAM lParam)
return GLFW_KEY_LEFT_CONTROL; return GLFW_KEY_LEFT_CONTROL;
} }
if (wParam == VK_PROCESSKEY)
{
// IME notifies that keys have been filtered by setting the virtual
// key-code to VK_PROCESSKEY
return _GLFW_KEY_INVALID;
}
return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF]; return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF];
} }