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

blockly > ShortcutRegistry > createSerializedKey

ShortcutRegistry.createSerializedKey() method

Creates the serialized key code that will be used in the key map.


createSerializedKey(keyCode: number, modifiers: KeyCodes[] | null): string;


Parameter Type Description
keyCode number Number code representing the key.
modifiers KeyCodes[] | null List of modifier key codes to be used with the key. All valid modifiers can be found in the ShortcutRegistry.modifierKeys.



The serialized key code for the given modifiers and key.