Ram
Ram

Reputation: 1890

How to handle keyboard short cuts ( shortcuts like Command + control )?

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

Answers (1)

Mike K
Mike K

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

Related Questions