This commit is contained in:
Vanessa 2023-05-25 23:51:18 +08:00
parent 96c7e85aa4
commit d108944bd7

View file

@ -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)) {