Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9686

Daniel006cc6df8d22
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 5d787f9b66..b3b717c8de 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1560,11 +1560,14 @@ export class WYSIWYG {
}
this.escapeInline(protyle, range, event);
- if ((/^\d{1}$/.test(event.data) || event.data === "‘" || event.data === "“" || event.data === "「")) {
+ if ((/^\d{1}$/.test(event.data) || event.data === "‘" || event.data === "“" ||
+ // 百度输入法中文反双引号 https://github.com/siyuan-note/siyuan/issues/9686
+ event.data === "”" ||
+ event.data === "「")) {
clearTimeout(timeout); // https://github.com/siyuan-note/siyuan/issues/9179
timeout = window.setTimeout(() => {
input(protyle, blockElement, range, true); // 搜狗拼音数字后面句号变为点;Mac 反向双引号无法输入
- }, event.data === "“" ? Constants.TIMEOUT_INPUT : 0); // 百度输入法中文双引号光标跳动需要延迟 https://github.com/siyuan-note/siyuan/issues/9686
+ });
} else {
input(protyle, blockElement, range, true);
}