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

Vanessa8d2ff818738e
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index ce1c825519..a5038bc87c 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -651,12 +651,14 @@ export const initKeyboardToolbar = () => {
protyle.hint.fill(dataValue, protyle, false); // 点击后 range 会改变
event.preventDefault();
event.stopPropagation();
- if (slashBtnElement.getAttribute("data-focus") === "true") {
- focusByRange(protyle.toolbar.range);
- }
- // (( / {{ 的候选列表无输入框,需保持键盘不收起,否则无法继续输入筛选
if (dataValue === "((" || dataValue === "{{") {
+ // (( / {{ 的候选列表无输入框,需保持键盘不收起,否则无法继续输入筛选 https://github.com/siyuan-note/siyuan/issues/17877
callMobileAppShowKeyboard();
+ if (isInHarmony() || isInAndroid()) {
+ setTimeout(() => focusByRange(protyle.toolbar.range), Constants.TIMEOUT_TRANSITION);
+ }
+ } else if (slashBtnElement.getAttribute("data-focus") === "true") {
+ focusByRange(protyle.toolbar.range);
}
return;
}