KeyboardCommand.onKey?
KeyboardCommand › onKey?
Type: ($event: KeyboardEvent, context: KeymapContext) => boolean
The handler invoked when the shortcut is pressed. When omitted, the command is a hint only and no scope handler is registered.KeyboardCommand › onKey?
Type: ($event: KeyboardEvent, context: KeymapContext) => boolean
The handler invoked when the shortcut is pressed. When omitted, the command is a hint only and no scope handler is registered.