From 85b64edcf00529d7318a854b9e223fb35a2e93f5 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Mon, 8 Apr 2013 03:04:10 +0200 Subject: [PATCH] Fix modifier keys. The wrong mask was used making all modifier keys not be recognized. --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index f93b2c6a..2c2698bc 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -450,7 +450,7 @@ static int convertMacKeyCode(unsigned int macKeyCode) { int mode, key; unsigned int newModifierFlags = - [event modifierFlags] | NSDeviceIndependentModifierFlagsMask; + [event modifierFlags] & NSDeviceIndependentModifierFlagsMask; if (newModifierFlags > window->ns.modifierFlags) mode = GLFW_PRESS;