I have a NSView
subclass and I would like it to react when the user presses the ? Shift key. However, -[NSView keyDown:]
(which I currently override) isn't called when modifier keys alone are pressed.
How can I be notified when the Shift key has been pressed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…