mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
96c7e85aa4
commit
d108944bd7
1 changed files with 3 additions and 2 deletions
|
|
@ -1059,8 +1059,9 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
|
|||
return true;
|
||||
}
|
||||
const target = event.target as HTMLElement;
|
||||
if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" ||
|
||||
hasClosestByAttribute(target, "contenteditable", null)) {
|
||||
if (target.tagName !== "TABLE" && (
|
||||
target.tagName === "INPUT" || target.tagName === "TEXTAREA" || hasClosestByAttribute(target, "contenteditable", null)
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue