封鎖 >ShortcutRegistry >setKeyMap

ShortcutRegistry.setKeyMap() 方法

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

Signature:

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

參數

參數 類型 說明
newKeyMap { [key: string]: string[];} 含有捷徑名稱的鍵的物件。

傳回:

void