Stay organized with collections Save and categorize content based on your preferences.

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

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

Returns:

void