Skip to main content

Home > blockly > ShortcutRegistry > setKeyMap

ShortcutRegistry.setKeyMap() method

Sets the key map. Setting the key map will override any default key mappings.

Signature:

setKeyMap(newKeyMap: {
[key: string]: string[];
}): void;

Parameters

ParameterTypeDescription
newKeyMap{ [key: string]: string[]; }The object with key code to shortcut names.

Returns:

void