An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: https://github.com/siyuan-note/siyuan/issues/7057 hotkey
Vanessa910c2c1428bb
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex c9289224a3..5ae6fec604 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -10,7 +10,7 @@ import {} from "../util/selection";import {hasClosestBlock,- hasClosestByAttribute,+ hasClosestByAttribute, hasClosestByClassName,hasClosestByMatchTag,hasTopClosestByAttribute} from "../util/hasClosest";@@ -996,14 +996,16 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {if (matchHotKey(window.siyuan.config.keymap.editor.general.quickMakeCard.custom, event)) {const selectElement: Element[] = [];- nodeElement.classList.add("protyle-wysiwyg--select");+ if (!hasClosestByClassName(nodeElement, "protyle-wysiwyg--select")) {+ nodeElement.classList.add("protyle-wysiwyg--select");+ }let isRemove = true;const removeIds: string[] = [];protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").forEach(item => {selectElement.push(item);item.classList.remove("protyle-wysiwyg--select");removeIds.push(item.getAttribute("data-node-id"));- if ((item.getAttribute("custom-riff-decks") || "").indexOf(Constants.QUICK_DECK_ID) > -1) {+ if ((item.getAttribute("custom-riff-decks") || "").indexOf(Constants.QUICK_DECK_ID) === -1) {isRemove = false;}});