From b0eb90593b7f240d34044b877fbee7866a0656d0 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 29 Nov 2015 16:55:08 +0000 Subject: [PATCH 1/2] 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]; } From 99cec597396f8cc6f85e2156366d7ee41275f35a Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 29 Nov 2015 16:57:30 +0000 Subject: [PATCH 2/2] Tab to spaces --- src/win32_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index 7878f6124..42109a40d 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -222,7 +222,7 @@ static int translateKey(WPARAM wParam, LPARAM lParam) { // IME notify of filtered keys by setting the virtual key-code to VK_PROCESSKEY - return _GLFW_KEY_INVALID; + return _GLFW_KEY_INVALID; } return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF];