diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index 026f3777d1..23a3e02355 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -376,7 +376,7 @@ void cocoa_set_input_context(struct input_ctx *input_context) if (cocoaModifiers & NSControlKeyMask) mask |= MP_KEY_MODIFIER_CTRL; if (LeftAltPressed(cocoaModifiers) || - RightAltPressed(cocoaModifiers) && ![self useAltGr]) + (RightAltPressed(cocoaModifiers) && ![self useAltGr])) mask |= MP_KEY_MODIFIER_ALT; if (cocoaModifiers & NSCommandKeyMask) mask |= MP_KEY_MODIFIER_META;