mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 15:25:50 +00:00
Win32: Fix right Shift scancode when using CJK IME
Fixes #2050
(cherry picked from commit 6dd526fb1a)
This commit is contained in:
@@ -756,6 +756,10 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user