Skip to main content

Home > blockly > ShortcutRegistry > getShortcutNamesByKeyCode

ShortcutRegistry.getShortcutNamesByKeyCode() method

Gets the shortcuts registered to the given key code.

Signature:

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

Parameters

ParameterTypeDescription
keyCodestringThe serialized key code.

Returns:

string[] | undefined

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