Skip to content

KeyboardCommand.onActivate method

KeyboardCommand › onActivate

The pointer route into the same handler the shortcut runs. Required for the command to render a button in ModalCommandsRenderMode.Buttons mode — on a phone there is no modifier key to press, so this is the only way in.

Signature:

onActivate(this: void, $event: MouseEvent): void

Parameters:

ParameterTypeDescription
thisvoid
$eventMouseEvent

Returns: void