GtkKeyHelper class

Helper class that uses GTK-specific key mappings.

Mixed in types

Constructors

GtkKeyHelper()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getModifierSide(ModifierKey key) KeyboardSide
Returns a KeyboardSide enum value that describes which side or sides of the given keyboard modifier key were pressed at the time of this event.
override
isModifierPressed(ModifierKey key, int modifiers, {KeyboardSide side: KeyboardSide.any, int keyCode, bool isDown}) bool
Returns true if the given ModifierKey was pressed at the time of this event.
override
logicalKey(int keyCode) LogicalKeyboardKey
The logical key key from the specific key code mapping.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
numpadKey(int keyCode) LogicalKeyboardKey
The numpad key from the specific key code mapping.
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

modifierCapsLock → const int
This mask is used to check the modifiers field to test whether the CAPS LOCK modifier key is on. Use this value if you need to decode the modifiers field yourself, but it's much easier to use isModifierPressed if you just want to know if a modifier is pressed. This is especially true on GTK, since its modifiers don't include the effects of the current key event.
1 << 1
modifierControl → const int
This mask is used to check the modifiers field to test whether one of the CTRL modifier keys is pressed. Use this value if you need to decode the modifiers field yourself, but it's much easier to use isModifierPressed if you just want to know if a modifier is pressed. This is especially true on GTK, since its modifiers don't include the effects of the current key event.
1 << 2
modifierMeta → const int
This mask is used to check the modifiers field to test whether one of the Meta(SUPER) modifier keys is pressed. Use this value if you need to decode the modifiers field yourself, but it's much easier to use isModifierPressed if you just want to know if a modifier is pressed. This is especially true on GTK, since its modifiers don't include the effects of the current key event.
1 << 28
modifierMod1 → const int
This mask is used to check the modifiers field to test whether the first modifier key is pressed (usually mapped to alt). Use this value if you need to decode the modifiers field yourself, but it's much easier to use isModifierPressed if you just want to know if a modifier is pressed. This is especially true on GTK, since its modifiers don't include the effects of the current key event.
1 << 3
modifierMod2 → const int
This mask is used to check the modifiers field to test whether the second modifier key is pressed (assumed to be mapped to num lock). Use this value if you need to decode the modifiers field yourself, but it's much easier to use isModifierPressed if you just want to know if a modifier is pressed. This is especially true on GTK, since its modifiers don't include the effects of the current key event.
1 << 4
modifierShift → const int
This mask is used to check the modifiers field to test whether one of the SHIFT modifier keys is pressed. [...]
1 << 0