mirror of
https://github.com/ksherlock/ample.git
synced 2025-02-22 13:29:02 +00:00
commentary.
This commit is contained in:
parent
d058aa6588
commit
ac459adb57
@ -985,10 +985,22 @@ static NSString *ShellQuote(NSString *s) {
|
||||
|
||||
#pragma mark - NSMenuDelegate
|
||||
|
||||
#if 1
|
||||
-(void)menuNeedsUpdate:(NSMenu *)menu {
|
||||
NSEventModifierFlags modifiers = [NSEvent modifierFlags];
|
||||
|
||||
[self setOptionKey: modifiers & NSEventModifierFlagOption ? YES : NO];
|
||||
}
|
||||
|
||||
#else
|
||||
/* doesn't trigger when menu is the first responder. */
|
||||
-(void)flagsChanged:(NSEvent *)event {
|
||||
NSEventModifierFlags modifiers = [event modifierFlags];
|
||||
|
||||
[self setOptionKey: modifiers & NSEventModifierFlagOption ? YES : NO];
|
||||
|
||||
[super flagsChanged: event];
|
||||
}
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user