Cocoa: No keyboard events will fire while dragging (NSEventTrackingRunLoopMode)
问题 I am successfully able to react to keyboard events through my window controller's keyDown: method. The problem arises while performing a mouse drag: Keyboard events seem to be delayed and will only fire on mouse up. To be clear, what I mean is: • place a log statement in you window controller's keyDown: method • launch your app, perform some drag operation (on a NSSlider for ex.) • while maintaining the drag, press any key: nothing logs to the console. • release drag : logs appear, yay… The