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
Parameter | Type | Description |
---|---|---|
shortcutName | string | The name of the shortcut. |
Returns:
string[]
An array with all the key codes the shortcut is registered under.