Ver código fonte

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

Vanessa 2 anos atrás
pai
commit
89c895fa82
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      app/src/util/globalShortcut.ts

+ 3 - 1
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) &&