• getModifiers
Return the current keyboard modifiers mask. It is a combination of the
following base-2 values:
Key | Hexadecimal | Decimal |
ShiftLock | 0x01 | 1 |
Shift | 0x02 | 2 |
Control | 0x04 | 4 |
Option | 0x08 | 8 |
Command | 0x10 | 16 |
NumericPad | 0x20 | 32 |
Help | 0x40 | 64 |
Function | 0x80 | 128 |
The Option modifier is also known as Alternate.
The ShiftLock modifier is also known as AlphaShift.
The Function modifier corresponds to the fn
key (not to be
confused with the F1, F2, etc. keys).