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/5434
Vanessacb2dc47567a3
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 1297616fba..49aacee882 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -612,6 +612,10 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusTextfocusByRange(protyle.toolbar.range);}window.siyuan.menus.menu.remove();+ } else if (event.key === "Tab" && !event.isComposing) {+ event.preventDefault();+ event.stopPropagation();+ element.nextElementSibling.querySelector("input").focus();}});}@@ -649,6 +653,14 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusTextfocusByRange(protyle.toolbar.range);}window.siyuan.menus.menu.remove();+ } else if (event.key === "Tab" && !event.isComposing) {+ event.preventDefault();+ event.stopPropagation();+ if (event.shiftKey) {+ element.previousElementSibling.querySelector("input").focus();+ } else {+ element.nextElementSibling.querySelector("input").focus();+ }}});}@@ -679,6 +691,10 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusTextfocusByRange(protyle.toolbar.range);}window.siyuan.menus.menu.remove();+ } else if (event.key === "Tab" && event.shiftKey && !event.isComposing) {+ event.preventDefault();+ event.stopPropagation();+ element.previousElementSibling.querySelector("input").focus();}});}@@ -690,7 +706,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusTextprotyle.toolbar.setInlineMark(protyle, "link", "remove");}}).element);- if (linkAddress.startsWith("assets/")) {+ if (linkAddress?.startsWith("assets/")) {window.siyuan.menus.menu.append(new MenuItem({label: window.siyuan.languages.rename,click() {