diff --git a/app/src/protyle/util/hotKey.ts b/app/src/protyle/util/hotKey.ts index 45fe029c6..b5ae07a49 100644 --- a/app/src/protyle/util/hotKey.ts +++ b/app/src/protyle/util/hotKey.ts @@ -218,6 +218,9 @@ export const isIncludesHotKey = (hotKey: string) => { }; export const updateControlAlt = () => { + if (!window.siyuan.config.keymap.general) { + return; + } Object.keys(window.siyuan.config.keymap.general).forEach(key => { if (["fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks", "graphView", "globalGraph", "riffCard"].includes(key)) {