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: https://github.com/siyuan-note/siyuan/issues/17800
Vanessafe97086cd2d0
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 393d85574f..6198b23086 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -166,11 +166,12 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {}// https://github.com/siyuan-note/siyuan/issues/2261if (!["⌘", "⇧", "⌥", "⌃"].includes(Constants.KEYCODELIST[event.keyCode])) {- if (Constants.KEYCODELIST[event.keyCode] === "/" ||- // 德语- event.key === "/" ||- // windows 中文- (event.code === "Slash" && event.key === "Process" && event.keyCode === 229)) {+ if ((Constants.KEYCODELIST[event.keyCode] === "/" ||+ // 德语+ event.key === "/" ||+ // windows 中文+ (event.code === "Slash" && event.key === "Process" && event.keyCode === 229)) &&+ !isInEmbedBlock(nodeElement)) {protyle.hint.enableSlash = true;} else if (Constants.KEYCODELIST[event.keyCode] === "\\" ||// 德语@@ -554,7 +555,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {!protyle.hint.element.classList.contains("fn__none") && protyle.hint.select(event, protyle)) {return;}- if (matchHotKey("⌘/", event)) {+ if (matchHotKey("⌘/", event) && !isInEmbedBlock(nodeElement)) {event.stopPropagation();event.preventDefault();const selectElements = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"));