Skip to content

ModalCommandBuilder.addKeyboardCommand method

ModalCommandBuilder › addKeyboardCommand

Adds a keyboard command to the control strip. 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.