RawKeyEventDataLinux class

Platform-specific key event data for Linux.

Different window toolkit implementations can map to different key codes. This class will use the correct mapping depending on the toolkit provided.

See also:

  • RawKeyboard, which uses this interface to expose key data.
Inheritance

Constructors

RawKeyEventDataLinux({@required KeyHelper keyHelper, int scanCode: 0, int codePoint: 0, int keyCode: 0, int modifiers: 0 })
Creates a key event data structure specific for macOS. [...]
const

Properties

codePoint int
The Unicode code point represented by the key event, if any. [...]
final
keyCode int
The hardware key code corresponding to this key event. [...]
final
keyHelper KeyHelper
A helper class that abstracts the fetching of the toolkit-specific mappings. [...]
final
keyLabel String
Returns the Unicode string representing the label on this key. [...]
read-only, override
logicalKey LogicalKeyboardKey
Returns an object representing the logical key that was pressed. [...]
read-only, override
modifiers int
A mask of the current modifiers using the values in Modifier Flags. This value may be different depending on the window toolkit used (See toolkit).
final
physicalKey PhysicalKeyboardKey
Returns an object representing the physical location of this key on a QWERTY keyboard. [...]
read-only, override
scanCode int
The hardware scan code id corresponding to this key event. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
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. [...]
read-only, inherited
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. [...]
read-only, inherited
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. [...]
read-only, inherited
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. [...]
read-only, inherited
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.
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, { KeyboardSide side: KeyboardSide.any }) bool
Returns true if the given ModifierKey was pressed at the time of this event. [...]
override
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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