1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Fix modifier keys.

The wrong mask was used making all modifier keys not be recognized.
This commit is contained in:
NathanSweet 2013-04-08 03:04:10 +02:00 committed by Camilla Berglund
parent d4a61bbd36
commit 85b64edcf0

View File

@ -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;