This commit is contained in:
parent
c56dcead19
commit
89c895fa82
1 changed files with 3 additions and 1 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Add table
Reference in a new issue