keyDown not being called
问题 I have a custom NSView called SurfaceView. It is the contentView of a NSWindow and it handles basic events like mouse click and drawing. But don't matters what I do, it does not handle the keyDown function. I've already override the acceptsFirstResponder but nothing happens. If it matters, I run the application using a custom NSEvent loop, shown below: NSDictionary* info = [[NSBundle mainBundle] infoDictionary]; NSString* mainNibName = [info objectForKey:@"NSMainNibFile"]; NSApplication* app