From 8520b02df579e6208a40f0432a22270fa7d90566 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 24 Dec 2025 21:12:00 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/pull/16676 --- app/src/config/keymap.ts | 5 ++++- app/src/plugin/index.ts | 7 ++++++- app/src/protyle/toolbar/index.ts | 10 ++++++++-- 3 files changed, 18 insertions(+), 4 deletions(-) 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 += `