GtkKeyHelper class
Helper class that uses GTK-specific key mappings.
This class is deprecated and will be removed. Platform specific key event data will no longer be available. See KeyEvent for what is available.
- Implemented types
- Annotations
-
- @Deprecated('No longer supported. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
Constructors
Properties
- debugToolkit → String
-
Returns the name for the toolkit.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- platformPlane → int
-
The platform plane mask value of this platform.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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, required int keyCode, required 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 from the specific key code mapping.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
numpadKey(
int keyCode) → LogicalKeyboardKey? -
The numpad key from the specific key code mapping.
override
-
toString(
) → String -
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 RawKeyEventDataLinux.modifiers field to test whether the CAPS LOCK modifier key is on.
- modifierControl → const int
- This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the CTRL modifier keys is pressed.
- modifierMeta → const int
- This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the Meta(SUPER) modifier keys is pressed.
- modifierMod1 → const int
- This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether the first modifier key is pressed (usually mapped to alt).
- modifierMod2 → const int
- This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether the second modifier key is pressed (assumed to be mapped to num lock).
- modifierShift → const int
- This mask is used to check the RawKeyEventDataLinux.modifiers field to test whether one of the SHIFT modifier keys is pressed.