CommandShortcutEvent class

Defines the implementation of shortcut event based on command.

Constructors

CommandShortcutEvent({required String key, required String command, required CommandShortcutEventHandler handler, required String getDescription()?, String? windowsCommand, String? macOSCommand, String? linuxCommand})

Properties

command String
The string representation for the keyboard keys.
getter/setter pair
description String?
no setter
handler CommandShortcutEventHandler
final
hashCode int
The hash code for this object.
no setteroverride
key String
The unique key.
final
keybindings List<Keybinding>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRespondToRawKeyEvent(KeyEvent event) bool
copyWith({String? key, String getDescription()?, String? command, CommandShortcutEventHandler? handler}) CommandShortcutEvent
execute(EditorState editorState) KeyEventResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
updateCommand({String? command, String? windowsCommand, String? macOSCommand, String? linuxCommand}) → void

Operators

operator ==(Object other) bool
The equality operator.
override