KeyModifiers¶
Import: import system.window;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
KeyModifiers¶
Modifier keys and lock states held while a key event happened. The choices are bit flags. Test one with &, for example (key.modifiers & KeyModifiers.Shift) != KeyModifiers.None.
None¶
No modifier was held.
Shift¶
Either Shift key was held.
Control¶
Either Control key was held.
Alt¶
Either Alt (Option) key was held.
Meta¶
Either Meta key (Command on macOS, Windows key on Windows) was held.
CapsLock¶
Caps Lock was on.
NumLock¶
Num Lock was on.