blockly > ShortcutRegistry > onKeyDown

ShortcutRegistry.onKeyDown() method

Handles key down events.

Signature:

onKeyDown(workspace: WorkspaceSvg, e: KeyboardEvent): boolean;

Parameters

Parameter Type Description
workspace WorkspaceSvg The main workspace where the event was captured.
e KeyboardEvent The key down event.

Returns:

boolean

True if the event was handled, false otherwise.