Reputation: 1890
How can I get the keyCode for a particular combination in KeyDown? What would be the keyCode for Control + Option + A
. or Command + Control +Shift +X
?
Upvotes: 0
Views: 218
Reputation: 2227
[NSEvent modifierFlags]
will return a bitmask of the modifier keys that are currently down (http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html)
Upvotes: 1