Skip to main content

Home > blockly > Toolbox > onShortcut

Toolbox.onShortcut() method

Handles the given keyboard shortcut.

Signature:

onShortcut(_shortcut: KeyboardShortcut): boolean;

Parameters

ParameterTypeDescription
_shortcutKeyboardShortcutThe shortcut to be handled.

Returns:

boolean

True if the shortcut has been handled, false otherwise.