From c940695eb03723fa6e4b174db524bcaa4f55bbee Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 14 Oct 2020 17:53:01 +0100 Subject: [PATCH] Fix macOS Print Screen Many years ago this value was changed from F13 to Print Screen with 1ae9ce1e0a00bf6f8b7e719bf1ec6e73f111afcf. However, this was later reverted to F13 with 5759d0fdf272351b35f666718a6e2a665db827e8. This changes it back to Print Screen for consistency with other platforms. Closes #1786. --- src/cocoa_init.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_init.m b/src/cocoa_init.m index 7cad8b8e..edd174be 100644 --- a/src/cocoa_init.m +++ b/src/cocoa_init.m @@ -251,7 +251,7 @@ static void createKeyTables(void) _glfw.ns.keycodes[0x6D] = GLFW_KEY_F10; _glfw.ns.keycodes[0x67] = GLFW_KEY_F11; _glfw.ns.keycodes[0x6F] = GLFW_KEY_F12; - _glfw.ns.keycodes[0x69] = GLFW_KEY_F13; + _glfw.ns.keycodes[0x69] = GLFW_KEY_PRINT_SCREEN; _glfw.ns.keycodes[0x6B] = GLFW_KEY_F14; _glfw.ns.keycodes[0x71] = GLFW_KEY_F15; _glfw.ns.keycodes[0x6A] = GLFW_KEY_F16;