Skip to content

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): this

Parameters:

ParameterTypeDescription
commandKeyboardCommandThe keyboard command to add.

Returns: thisThe builder instance for chaining.