From b0eb90593b7f240d34044b877fbee7866a0656d0 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 29 Nov 2015 16:55:08 +0000 Subject: [PATCH] Fix for key events filtered by Win32 IME being passed to end-user --- src/win32_window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index eb421bad3..7878f6124 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -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]; }