KeyModifiers extension type

An extension type representing key modifiers (Shift, Ctrl, Alt, etc.)

on

Constructors

KeyModifiers.fromMask(int mask)
Optional factory if you really want to accept raw masks (e.g. parsing).
factory

Properties

value int
final

Methods

debugInfo() String
Returns a debug string representation of the active modifiers.
has(KeyModifiers modifier) bool
Checks if the specified modifier is present.

Operators

operator &(KeyModifiers other) KeyModifiers
Combines two KeyModifier instances using a bitwise AND operation.
operator |(KeyModifiers other) KeyModifiers
Combines two KeyModifier instances using a bitwise OR operation.

Constants

alt → const KeyModifiers
Represents the Alt key modifier.
capsLock → const KeyModifiers
Represents the Caps Lock key modifier.
ctrl → const KeyModifiers
Represents the Ctrl key modifier.
hyper → const KeyModifiers
Represents the Hyper key modifier.
keyPad → const KeyModifiers
Represents the that the key event originated from the keypad.
meta → const KeyModifiers
Represents the Meta key modifier.
none → const KeyModifiers
Represents no modifier keys pressed.
shift → const KeyModifiers
Represents the Shift key modifier.
superKey → const KeyModifiers
Represents the Super (Windows/Command) key modifier.