I\'m looking for a comprehensive list of the available key codes that can be used with Cocoa\'s NSEvent class. The NSEvent class has a keyCod
NSEvent
keyCod
For Swift, import Carbon.HIToolbox.Events and then use the constants directly:
Carbon.HIToolbox.Events
import Carbon.HIToolbox.Events let keyCode = kVK_ANSI_A
For a list of all codes, go to the definition of Carbon.HIToolbox.Events: