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

Vanessa063edb880422
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 8a8dbe76c0..5d787f9b66 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1559,11 +1559,12 @@ export class WYSIWYG {
return;
}
this.escapeInline(protyle, range, event);
+
if ((/^\d{1}$/.test(event.data) || event.data === "‘" || 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);
}