blockly > ShortcutRegistry > KeyboardShortcut > callback

ShortcutRegistry.KeyboardShortcut.callback property

The function to be called when the shorctut is invoked.

Signature:

callback?: (workspace: WorkspaceSvg, e: Event, shortcut: KeyboardShortcut, scope: Scope) => boolean;