diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts index 0f79661b7..79ef5b042 100644 --- a/app/src/config/keymap.ts +++ b/app/src/config/keymap.ts @@ -56,9 +56,12 @@ export const keymap = { `; }); item.updateProtyleToolbar([]).forEach(toolbarItem => { - if (typeof toolbarItem === "string" || Constants.INLINE_TYPE.concat("|").includes(toolbarItem.name) || !toolbarItem.hotkey) { + if (typeof toolbarItem === "string" || Constants.INLINE_TYPE.concat("|").includes(toolbarItem.name)) { return; } + if (typeof toolbarItem.hotkey !== "string") { + toolbarItem.hotkey = ""; + } const dockKeymap = window.siyuan.config.keymap.plugin[item.name][toolbarItem.name]; const keyValue = updateHotkeyTip(dockKeymap.custom); commandHTML += `