From 3856a624f821de8f4b379205ba21f9138878804a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 8 Mar 2023 22:51:03 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/7594 --- app/src/assets/template/mobile/index.tpl | 2 +- app/src/mobile/util/keyboardToolbar.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/assets/template/mobile/index.tpl b/app/src/assets/template/mobile/index.tpl index b4ba6e00b..59fd4619c 100644 --- a/app/src/assets/template/mobile/index.tpl +++ b/app/src/assets/template/mobile/index.tpl @@ -2,7 +2,7 @@ - + diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts index 6b3cbbbd1..1ad7c4a9e 100644 --- a/app/src/mobile/util/keyboardToolbar.ts +++ b/app/src/mobile/util/keyboardToolbar.ts @@ -205,6 +205,7 @@ export const initKeyboardToolbar = () => { const protyle = window.siyuan.mobile.editor.protyle; if (slashBtnElement) { protyle.hint.fill(decodeURIComponent(slashBtnElement.getAttribute("data-value")), protyle); + focusByRange(protyle.toolbar.range); event.preventDefault(); event.stopPropagation(); return;