blockly > Toolbox > onShortcut

Toolbox.onShortcut() method

Handles the given keyboard shortcut.

Signature:

onShortcut(_shortcut: KeyboardShortcut): boolean;

Parameters

Parameter Type Description
_shortcut KeyboardShortcut The shortcut to be handled.

Returns:

boolean

True if the shortcut has been handled, false otherwise.