From 063edb880422e915910584106d7c2a10afa804a5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 25 Nov 2023 09:32:41 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9686 --- app/src/protyle/wysiwyg/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 8a8dbe76c..5d787f9b6 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); }