mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Win32: Fix glfwGetKeyScancode for GLFW_KEY_PAUSE
The bug described in03cfe957e7was already present for another key where modifiers changes its scancode. Related to #1993 (cherry picked from commit8d9231fe5e)
This commit is contained in:
@@ -752,6 +752,10 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||
if (scancode == 0x54)
|
||||
scancode = 0x137;
|
||||
|
||||
// HACK: Ctrl+Pause has a different scancode than just Pause
|
||||
if (scancode == 0x146)
|
||||
scancode = 0x45;
|
||||
|
||||
key = _glfw.win32.keycodes[scancode];
|
||||
|
||||
// The Ctrl keys require special handling
|
||||
|
||||
Reference in New Issue
Block a user