mirror of https://github.com/mpv-player/mpv
cocoa: silence -Wlogical-op-parentheses
(cherry picked from commit 3c3f9a8042
)
This commit is contained in:
parent
83119f05c4
commit
21a90cc49c
|
@ -376,7 +376,7 @@ void cocoa_set_input_context(struct input_ctx *input_context)
|
||||||
if (cocoaModifiers & NSControlKeyMask)
|
if (cocoaModifiers & NSControlKeyMask)
|
||||||
mask |= MP_KEY_MODIFIER_CTRL;
|
mask |= MP_KEY_MODIFIER_CTRL;
|
||||||
if (LeftAltPressed(cocoaModifiers) ||
|
if (LeftAltPressed(cocoaModifiers) ||
|
||||||
RightAltPressed(cocoaModifiers) && ![self useAltGr])
|
(RightAltPressed(cocoaModifiers) && ![self useAltGr]))
|
||||||
mask |= MP_KEY_MODIFIER_ALT;
|
mask |= MP_KEY_MODIFIER_ALT;
|
||||||
if (cocoaModifiers & NSCommandKeyMask)
|
if (cocoaModifiers & NSCommandKeyMask)
|
||||||
mask |= MP_KEY_MODIFIER_META;
|
mask |= MP_KEY_MODIFIER_META;
|
||||||
|
|
Loading…
Reference in New Issue