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/16532

Vanessa96e39968717e
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index df497693c7..3993ce33d7 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2488,7 +2488,13 @@ export class WYSIWYG {
input(protyle, blockElement, range, true); // 搜狗拼音数字后面句号变为点;Mac 反向双引号无法输入
});
} else {
- input(protyle, blockElement, range, true, event);
+ if (isMac() && event.data === "【】") {
+ setTimeout(() => {
+ input(protyle, blockElement, range, true, event);
+ }, Constants.TIMEOUT_INPUT);
+ } else {
+ input(protyle, blockElement, range, true, event);
+ }
}
event.stopPropagation();
});