blockly > ShortcutRegistry > setKeyMap

ShortcutRegistry.setKeyMap() 方法

設定按鍵對應配置。設定按鍵對應會覆寫所有預設的按鍵對應。

Signature:

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

參數

參數 類型 說明
newKeyMap { [key: string]: string[]; } 包含按鍵碼的物件,用來對應至捷徑名稱。

傳回:

void