OS X - keyboard events not called when mouse is dragging?

In OS X, why is keyDown or keyUp not called while you are dragging with the mouse? Are the mouse and keyboard events combined somehow?

Answered by bsabiston in 274680022

Actually this happens during a NSPanGestureRecognizer. And I guess those intercept key events, even when the gesture is not triggered by keys. So I had to subclass the NSPanGestureRecognizer and manually pass the key events to the window controller.

Accepted Answer

Actually this happens during a NSPanGestureRecognizer. And I guess those intercept key events, even when the gesture is not triggered by keys. So I had to subclass the NSPanGestureRecognizer and manually pass the key events to the window controller.

OS X - keyboard events not called when mouse is dragging?
 
 
Q