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;