RawKeyEventDataWindows class
Platform-specific key event data for Windows.
This class is DEPRECATED. Platform specific key event data will no longer available. See KeyEvent for what is available.
This object contains information about key events obtained from Windows's win32 API.
See also:
- RawKeyboard, which uses this interface to expose key data.
- Inheritance
-
- Object
- RawKeyEventData
- RawKeyEventDataWindows
- Annotations
-
- @Deprecated('Platform specific key event data is no longer available. See KeyEvent for what is available. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
Constructors
- RawKeyEventDataWindows({int keyCode = 0, int scanCode = 0, int characterCodePoint = 0, int modifiers = 0})
-
Creates a key event data structure specific for Windows.
const
Properties
- characterCodePoint → int
-
The Unicode code point represented by the key event, if any.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAltPressed → bool
-
Returns true if a ALT modifier key was pressed at the time of this event,
regardless of which side of the keyboard it is on.
no setterinherited
- isControlPressed → bool
-
Returns true if a CTRL modifier key was pressed at the time of this event,
regardless of which side of the keyboard it is on.
no setterinherited
- isMetaPressed → bool
-
Returns true if a META modifier key was pressed at the time of this event,
regardless of which side of the keyboard it is on.
no setterinherited
- isShiftPressed → bool
-
Returns true if a SHIFT modifier key was pressed at the time of this
event, regardless of which side of the keyboard it is on.
no setterinherited
- keyCode → int
-
The hardware key code corresponding to this key event.
final
- keyLabel → String
-
Returns the Unicode string representing the label on this key.
no setteroverride
- logicalKey → LogicalKeyboardKey
-
Returns an object representing the logical key that was pressed.
no setteroverride
- modifiers → int
-
A mask of the current modifiers. The modifier values must be in sync with
the Windows embedder. See:
https://github.com/flutter/engine/blob/7667c8a12ce6bc2d8dd538845add0a4e1a575bfd/shell/platform/windows/keyboard_key_channel_handler.cc#L44
final
-
modifiersPressed
→ Map<
ModifierKey, KeyboardSide> -
Returns a map of modifier keys that were pressed at the time of this
event, and the keyboard side or sides that the key was on.
no setterinherited
- physicalKey → PhysicalKeyboardKey
-
Returns an object representing the physical location of this key on a
QWERTY keyboard.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanCode → int
-
The hardware scan code id corresponding to this key event.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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, {KeyboardSide side = KeyboardSide.any}) → bool -
Returns true if the given ModifierKey was pressed at the time of this
event.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldDispatchEvent(
) → bool -
Whether a key down event, and likewise its accompanying key up event,
should be dispatched.
override
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- modifierAlt → const int
- This mask is used to check the modifiers field to test whether one of the ALT modifier keys is pressed.
- modifierCaps → const int
- This mask is used to check the modifiers field to test whether the CAPS LOCK key is pressed.
- modifierControl → const int
- This mask is used to check the modifiers field to test whether one of the CTRL modifier keys is pressed.
- modifierLeftAlt → const int
- This mask is used to check the modifiers field to test whether the left ALT modifier key is pressed.
- modifierLeftControl → const int
- This mask is used to check the modifiers field to test whether the left CTRL modifier key is pressed.
- modifierLeftMeta → const int
- This mask is used to check the modifiers field to test whether the left WIN modifier keys is pressed.
- modifierLeftShift → const int
- This mask is used to check the modifiers field to test whether the left SHIFT modifier key is pressed.
- modifierNumLock → const int
- This mask is used to check the modifiers field to test whether the NUM LOCK key is pressed.
- modifierRightAlt → const int
- This mask is used to check the modifiers field to test whether the right ALT modifier key is pressed.
- modifierRightControl → const int
- This mask is used to check the modifiers field to test whether the right CTRL modifier key is pressed.
- modifierRightMeta → const int
- This mask is used to check the modifiers field to test whether the right WIN modifier keys is pressed.
- modifierRightShift → const int
- This mask is used to check the modifiers field to test whether the right SHIFT modifier key is pressed.
- modifierScrollLock → const int
- This mask is used to check the modifiers field to test whether the SCROLL LOCK key is pressed.
- modifierShift → const int
- This mask is used to check the modifiers field to test whether one of the SHIFT modifier keys is pressed.