mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
e6304e1d24
commit
c0b30d4543
1 changed files with 5 additions and 2 deletions
|
|
@ -1080,7 +1080,8 @@ const editKeydown = (event: KeyboardEvent) => {
|
|||
return true;
|
||||
}
|
||||
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)) {
|
||||
return false;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {
|
||||
|
|
@ -1216,7 +1217,9 @@ const fileTreeKeydown = (event: KeyboardEvent) => {
|
|||
return true;
|
||||
}
|
||||
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 (bindMenuKeydown(event)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue