SuggestModalCommandBuilder.addKeyboardCommand method
SuggestModalCommandBuilder › addKeyboardCommand
Adds a keyboard command to the instruction bar. When KeyboardCommand.onKey is provided, its handler is registered with the modal scope; otherwise the command is a hint only.Signature:
addKeyboardCommand(command: KeyboardCommand): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| command | KeyboardCommand | The keyboard command to add. |
Returns: this — The builder instance for chaining.