From edebf3b5605578d3fa04fb2d7c3c0750e24333d5 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 5 Jun 2013 15:17:16 +0200 Subject: [PATCH] Clarified comment. --- src/win32_window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index ec54dc28..6cff5add 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -503,7 +503,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, if (wParam == VK_SHIFT) { - // Special trick: release both shift keys on SHIFT up event + // Release both Shift keys on Shift up event, as only one event + // is sent even if both keys are released _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, GLFW_RELEASE, mods); _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, GLFW_RELEASE, mods); }