From 89c895fa829817e39685befa920911e24dbca68d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 16 Feb 2023 14:03:03 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/7381 --- app/src/util/globalShortcut.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts index c00258f22..8d679498f 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) &&