From 4029164c8ecc301ebf055eb408b177deb278c9d9 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Sun, 30 Oct 2016 16:18:41 +0100 Subject: [PATCH] ecore_cocoa: fix behaviour of option key Commit e44c48b90408d2518e2708090796988cfd3cacea failed to translate the deprecated API into the Sierra API... replacing the Command key flags by the Option key flags. This resulted of Opt+q quitting the program. @fix --- src/lib/ecore_cocoa/ecore_cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m index 05de6f4bc5..d180561cc5 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa.m +++ b/src/lib/ecore_cocoa/ecore_cocoa.m @@ -205,7 +205,7 @@ _ecore_cocoa_feed_events(void *anEvent) Ecore_Event_Key *ev; NSUInteger flags = [event modifierFlags]; - if (flags & NSEventModifierFlagOption) + if (flags & NSEventModifierFlagCommand) { NSString *keychar = [event charactersIgnoringModifiers]; if ([keychar characterAtIndex:0] == 'q')