Fix modifier keys.

The wrong mask was used making all modifier keys not be recognized.
master
NathanSweet ago%!(EXTRA string=12 years) committed by Camilla Berglund
parent d4a61bbd36
commit 85b64edcf0
  1. 2
      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;

Loading…
Cancel
Save