TerminalKeyboardEvent class

The key event received from the keyboard, along with the state of the modifier keys and state of the terminal. Typically consumed by the TerminalInputHandler to produce a escape sequence that can be recognized by the terminal.

See also:

Constructors

TerminalKeyboardEvent({required TerminalKey key, required bool shift, required bool ctrl, required bool alt, required TerminalState state, required bool altBuffer, required TerminalTargetPlatform platform})
Creates a key event; every field is required.

Properties

alt → bool
Whether Alt (Option on macOS) is held.
final
altBuffer → bool
Whether the alternate screen is active.
final
ctrl → bool
Whether Control is held.
final
hashCode → int
The hash code for this object.
no setterinherited
key → TerminalKey
The key pressed.
final
platform → TerminalTargetPlatform
The platform the terminal behaves as.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shift → bool
Whether Shift is held.
final
state → TerminalState
The terminal's modes when the key was pressed.
final

Methods

copyWith({TerminalKey? key, bool? shift, bool? ctrl, bool? alt, TerminalState? state, bool? altBuffer, TerminalTargetPlatform? platform}) → TerminalKeyboardEvent
Returns a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited