Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/8367

Vanessad108944bd7e1
diff --git a/app/src/boot/globalShortcut.ts b/app/src/boot/globalShortcut.ts
index 80fc2b2749..eec419167c 100644
--- a/app/src/boot/globalShortcut.ts
+++ b/app/src/boot/globalShortcut.ts
@@ -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)) {