From 3503cba5d9df2976fa94eeaf852e15f987a00fa0 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 24 Mar 2016 21:20:33 +0100 Subject: [PATCH] Fix Ctrl+Pause reported as unknown key on Win32 Fixes #730 --- README.md | 1 + src/win32_init.c | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index db068683..14a9a81f 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ does not find Doxygen, the documentation will not be generated. - [Win32] Bugfix: Activating or deactivating displays in software did not trigger monitor callback - [Win32] Bugfix: No monitors were listed on headless and VMware guest systems + - [Win32] Bugfix: Pressing Ctrl+Pause would report `GLFW_KEY_UNKNOWN` - [Cocoa] Removed support for OS X 10.6 - [Cocoa] Bugfix: Full screen windows on secondary monitors were mispositioned - [Cocoa] Bugfix: Connecting a joystick that reports no name would segfault diff --git a/src/win32_init.c b/src/win32_init.c index 57acdb3a..f993064f 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -196,6 +196,7 @@ static void createKeyTables(void) _glfw.win32.publicKeys[0x151] = GLFW_KEY_PAGE_DOWN; _glfw.win32.publicKeys[0x149] = GLFW_KEY_PAGE_UP; _glfw.win32.publicKeys[0x045] = GLFW_KEY_PAUSE; + _glfw.win32.publicKeys[0x146] = GLFW_KEY_PAUSE; _glfw.win32.publicKeys[0x039] = GLFW_KEY_SPACE; _glfw.win32.publicKeys[0x00F] = GLFW_KEY_TAB; _glfw.win32.publicKeys[0x03A] = GLFW_KEY_CAPS_LOCK;