An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/7590
Vanessaba768225a060
diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.tsindex 02c63ab16e..d1c771de61 100644--- a/app/src/protyle/wysiwyg/commonHotkey.ts+++ b/app/src/protyle/wysiwyg/commonHotkey.ts@@ -36,20 +36,6 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent) => {return true;}- if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {- reloadProtyle(protyle);- event.preventDefault();- event.stopPropagation();- return true;- }-- if (matchHotKey(window.siyuan.config.keymap.editor.general.fullscreen.custom, event)) {- fullscreen(protyle.element);- setPadding(protyle);- event.preventDefault();- event.stopPropagation();- return true;- }if (matchHotKey(window.siyuan.config.keymap.editor.general.netImg2LocalAsset.custom, event)) {netImg2LocalAssets(protyle);event.preventDefault();diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.tsindex 282fd855ce..eb9775957d 100644--- a/app/src/util/globalShortcut.ts+++ b/app/src/util/globalShortcut.ts@@ -49,6 +49,9 @@ import {openHistory} from "../history/history";import {openCard} from "../card/openCard";import {lockScreen} from "../dialog/processSystem";import {isWindow} from "./functions";+import {reloadProtyle} from "../protyle/util/reload";+import {fullscreen} from "../protyle/breadcrumb/action";+import {setPadding} from "../protyle/ui/initUI";const getRightBlock = (element: HTMLElement, x: number, y: number) => {let index = 1;@@ -1083,6 +1086,17 @@ const editKeydown = (event: KeyboardEvent) => {if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || hasClosestByAttribute(target, "contenteditable", null)) {return false;}+ if (matchHotKey(window.siyuan.config.keymap.editor.general.refresh.custom, event)) {+ reloadProtyle(protyle);+ event.preventDefault();+ return true;+ }+ if (matchHotKey(window.siyuan.config.keymap.editor.general.fullscreen.custom, event)) {+ fullscreen(protyle.element);+ setPadding(protyle);+ event.preventDefault();+ return true;+ }if (matchHotKey(window.siyuan.config.keymap.editor.general.preview.custom, event)) {setEditMode(protyle, "preview");event.preventDefault();