Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17633

Vanessa1f868f046d5f
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index cbbc8c9e47..936767e269 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -108,7 +108,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
if (protyle.disabled ||
- (!protyle.selectElement.classList.contains("fn__none") && !protyle.selectElement.getAttribute("data-empty"))) {
+ (!protyle.selectElement.classList.contains("fn__none") && !protyle.selectElement.getAttribute("data-empty") &&
+ // 框选块时放行 ⌘C,以便复制选中的块 https://github.com/siyuan-note/siyuan/issues/18043
+ !matchHotKey("⌘C", event))) {
event.stopPropagation();
event.preventDefault();
return;