How can I detect that the Shift key has been pressed?

前端 未结 7 1076
甜味超标
甜味超标 2020-12-10 00:37

I have a NSView subclass and I would like it to react when the user presses the ⇧ Shift key. However, -[NSView keyDown:] (which I curren

相关标签:
7条回答
  • 2020-12-10 01:40

    in the apple's documentation :

    You have to override the keydown method

    with the following NSEvent modifier flags

    0 讨论(0)
提交回复
热议问题