CommandKeyboardKey class
A keyboard key that must be held down in order for a Command to be triggered.
- Annotations
-
- @JsonSerializable()
Constructors
- CommandKeyboardKey(ScanCode scanCode, {bool shiftKey = false, bool controlKey = false, bool altKey = false})
-
Create an instance.
const
-
CommandKeyboardKey.fromJson(Map<
String, dynamic> json) -
Create an instance from a JSON object.
factory
Properties
- altKey → bool
-
The alt key.
final
- controlKey → bool
-
The control key.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanCode → ScanCode
-
The keyboard key which must be used to trigger this command.
final
- shiftKey → bool
-
The shift key.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert an instance to JSON.
-
toPrintableString(
{String controlKeyName = 'ctrl', String shiftKeyName = 'shift', String altKeyName = 'alt', String getScanCodeString(ScanCode scanCode)?, String separator = '+'}) → String - Return a printable string of this key.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited