Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/7381

Vanessa89c895fa8298
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index c00258f22b..8d679498fb 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -1383,7 +1383,9 @@ const fileTreeKeydown = (event: KeyboardEvent) => {
const panelTreeKeydown = (event: KeyboardEvent) => {
// 面板折叠展开操作
const target = event.target as HTMLElement;
- if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || hasClosestByAttribute(target, "contenteditable", null)) {
+ if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" ||
+ hasClosestByAttribute(target, "contenteditable", null) ||
+ hasClosestByClassName(target, "protyle", true)) {
return false;
}
if (!matchHotKey(window.siyuan.config.keymap.editor.general.collapse.custom, event) &&