summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2016-10-30 16:18:41 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-10-30 16:46:30 +0100
commit4029164c8ecc301ebf055eb408b177deb278c9d9 (patch)
tree9c53c9eb4fc435bcc96484b7fac596a8b9352ca2
parent1f8224cc9a10b1a0e448d5e83efc9012e83a3b7d (diff)
downloadefl-4029164c8ecc301ebf055eb408b177deb278c9d9.tar.gz
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
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m2
1 files changed, 1 insertions, 1 deletions
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')