Skip to main content

Home > blockly > ShortcutRegistry > unregister

ShortcutRegistry.unregister() method

Unregisters a keyboard shortcut registered with the given name. This will also remove any key mappings that reference this shortcut.

Signature:

unregister(shortcutName: string): boolean;

Parameters

ParameterTypeDescription
shortcutNamestringThe name of the shortcut to unregister.

Returns:

boolean

True if an item was unregistered, false otherwise.