blockly > ShortcutRegistry > removeAllKeyMappings

ShortcutRegistry.removeAllKeyMappings() 方法

移除具有给定名称的快捷键的所有按键映射。在更改默认按键映射且向快捷方式注册的按键代码未知时,此功能会非常有用。

Signature:

removeAllKeyMappings(shortcutName: string): void;

参数

参数 类型 说明
shortcutName string 要从按键映射中移除的快捷键的名称。

返回

void