summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
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 /src/lib/ecore_cocoa
parent1f8224cc9a10b1a0e448d5e83efc9012e83a3b7d (diff)
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
Diffstat (limited to 'src/lib/ecore_cocoa')
-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)
205 Ecore_Event_Key *ev; 205 Ecore_Event_Key *ev;
206 NSUInteger flags = [event modifierFlags]; 206 NSUInteger flags = [event modifierFlags];
207 207
208 if (flags & NSEventModifierFlagOption) 208 if (flags & NSEventModifierFlagCommand)
209 { 209 {
210 NSString *keychar = [event charactersIgnoringModifiers]; 210 NSString *keychar = [event charactersIgnoringModifiers];
211 if ([keychar characterAtIndex:0] == 'q') 211 if ([keychar characterAtIndex:0] == 'q')