Win32: Fix right Shift scancode when using CJK IME

Fixes #2050
This commit is contained in:
Camilla Löwy
2022-06-28 22:26:39 +02:00
parent 2796e61af7
commit 6dd526fb1a
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -727,6 +727,10 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM l
if (scancode == 0x146)
scancode = 0x45;
// HACK: CJK IME sets the extended bit for right Shift
if (scancode == 0x136)
scancode = 0x36;
key = _glfw.win32.keycodes[scancode];
// The Ctrl keys require special handling