Fix modifier keys.
The wrong mask was used making all modifier keys not be recognized.
This commit is contained in:
parent
d4a61bbd36
commit
85b64edcf0
@ -450,7 +450,7 @@ static int convertMacKeyCode(unsigned int macKeyCode)
|
|||||||
{
|
{
|
||||||
int mode, key;
|
int mode, key;
|
||||||
unsigned int newModifierFlags =
|
unsigned int newModifierFlags =
|
||||||
[event modifierFlags] | NSDeviceIndependentModifierFlagsMask;
|
[event modifierFlags] & NSDeviceIndependentModifierFlagsMask;
|
||||||
|
|
||||||
if (newModifierFlags > window->ns.modifierFlags)
|
if (newModifierFlags > window->ns.modifierFlags)
|
||||||
mode = GLFW_PRESS;
|
mode = GLFW_PRESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user