Skip to content

HotkeyManager.onTrigger method

HotkeyManager › onTrigger

Unofficial

Trigger a command by keyboard event.

Signature:

onTrigger(event: KeyboardEvent, keypress: KeymapInfo): boolean

Parameters:

Parameter Type Description
event KeyboardEvent Keyboard event to trigger command with.
keypress KeymapInfo Pressed key information.

Returns: booleanWhether a command was triggered.