ecore_cocoa: fix behaviour of option key

Commit e44c48b904 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
This commit is contained in:
Jean Guyomarc'h 2016-10-30 16:18:41 +01:00
parent 1f8224cc9a
commit 4029164c8e
1 changed files with 1 additions and 1 deletions

View File

@ -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')