I am making a search field, which opens a NSMenu similar to Finder and Mail
The only problem, which drives me crazy, is that i cannot intercept the key events, once the menu is open
I even subclassed the NSApplication sendEvent, but was surprised to find out, that during menu, there is no call to Applications sendAction:
I subclassed performKeyEquivalent: NSMenu but it is not called
- (BOOL)performKeyEquivalent:(NSEvent *)theEvent
- I am listening for the delegate call on menuHasKeyEquivalent: but it doesn't get called
- (BOOL)menuHasKeyEquivalent:(NSMenu*)menu forEvent:(NSEvent*)event target:(id*)target action:(SEL*)action
How to intercept the keyboard input during NSMenu