#[repr(C)]pub struct KeyCode;Expand description
Constants for the virtual key codes
These constants are the virtual keycodes defined originally in
Inside Mac Volume V, pg. V-191. They identify physical keys on a
keyboard. The struct contains the values of the ANSIKeyCode,
KeyCode, ISOKeyCode and JISKeyCode of the original Carbon headers.
Those constants with “ANSI” in the name are labeled
according to the key position on an ANSI-standard US keyboard.
For example, ANSI_A indicates the virtual keycode for the key
with the letter ‘A’ in the US keyboard layout. Other keyboard
layouts may have the ‘A’ key label on a different physical key;
in this case, pressing ‘A’ will generate a different virtual
keycode. Constants with the ‘JIS_’ or ‘ISO_’ prefix behave
analogously. Keys without a prefix are independent of the
keyboard layout.