Skip to main content

Home > blockly > ShortcutRegistry > getKeyCodesByShortcutName

ShortcutRegistry.getKeyCodesByShortcutName() method

Gets the serialized key codes that the shortcut with the given name is registered under.

Signature:

getKeyCodesByShortcutName(shortcutName: string): string[];

Parameters

ParameterTypeDescription
shortcutNamestringThe name of the shortcut.

Returns:

string[]

An array with all the key codes the shortcut is registered under.