mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 19:10:49 +08:00
This commit is contained in:
parent
e6304e1d24
commit
c0b30d4543
@ -1080,7 +1080,8 @@ const editKeydown = (event: KeyboardEvent) => {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const target = event.target as HTMLElement;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {
|
if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {
|
||||||
@ -1216,7 +1217,9 @@ const fileTreeKeydown = (event: KeyboardEvent) => {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const target = event.target as HTMLElement;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
if (bindMenuKeydown(event)) {
|
if (bindMenuKeydown(event)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user