forked from enlightenment/efl
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:
parent
1f8224cc9a
commit
4029164c8e
|
@ -205,7 +205,7 @@ _ecore_cocoa_feed_events(void *anEvent)
|
||||||
Ecore_Event_Key *ev;
|
Ecore_Event_Key *ev;
|
||||||
NSUInteger flags = [event modifierFlags];
|
NSUInteger flags = [event modifierFlags];
|
||||||
|
|
||||||
if (flags & NSEventModifierFlagOption)
|
if (flags & NSEventModifierFlagCommand)
|
||||||
{
|
{
|
||||||
NSString *keychar = [event charactersIgnoringModifiers];
|
NSString *keychar = [event charactersIgnoringModifiers];
|
||||||
if ([keychar characterAtIndex:0] == 'q')
|
if ([keychar characterAtIndex:0] == 'q')
|
||||||
|
|
Loading…
Reference in New Issue