An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/6081
Vanessab7cfdd47dcdc
diff --git a/app/src/protyle/util/hotKey.ts b/app/src/protyle/util/hotKey.tsindex 30225f70c5..8ac0c1fecf 100644--- a/app/src/protyle/util/hotKey.ts+++ b/app/src/protyle/util/hotKey.ts@@ -72,15 +72,18 @@ export const matchHotKey = (hotKey: string, event: KeyboardEvent) => {}}// 是否匹配 ⌥[] / ⌥⌘[]- if (isMatchKey && (hotKeys.length === 3 ? isCtrl(event) : !isCtrl(event)) && event.altKey && !event.shiftKey) {+ if (isMatchKey && event.altKey && !event.shiftKey &&+ (hotKeys.length === 3 ? (isCtrl(event) && hotKey.startsWith("⌥⌘")) : !isCtrl(event))) {return true;}// ⌥⇧⌘[]- if (isMatchKey && hotKey.startsWith("⌥⇧⌘") && hotKeys.length === 4 && event.altKey && event.shiftKey && isCtrl(event)) {+ if (isMatchKey && hotKey.startsWith("⌥⇧⌘") && hotKeys.length === 4 &&+ event.altKey && event.shiftKey && isCtrl(event)) {return true;}// ⌥⇧[]- if (isMatchKey && hotKey.startsWith("⌥⇧") && hotKeys.length === 3 && event.altKey && event.shiftKey && !isCtrl(event)) {+ if (isMatchKey && hotKey.startsWith("⌥⇧") && hotKeys.length === 3 &&+ event.altKey && event.shiftKey && !isCtrl(event)) {return true;}return false;