Stay organized with collections Save and categorize content based on your preferences.

blockly > Field > onShortcut

Field.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.