标签: macos cocoa
按下Control + Tab时,似乎未调用keyDown:。我有一个NSView来呈现自定义小部件,因此我需要捕获Control + Tab以获取自定义行为,但NSApplication sendEvent: captures it to change the next key view。如何拦截这个以获取keyDown:事件中的Control + Tab?
keyDown:
NSView
NSApplication sendEvent: