blockly > ShortcutRegistry > getShortcutNamesByKeyCode

ShortcutRegistry.getShortcutNamesByKeyCode() method

Gets the shortcuts registered to the given key code.

Signature:

getShortcutNamesByKeyCode(keyCode: string): string[] | undefined;

Parameters

Parameter Type Description
keyCode string The serialized key code.

Returns:

string[] | undefined

The list of shortcuts to call when the given keyCode is used. Undefined if no shortcuts exist.