An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Hide mobile keyboard toolbar before closing animation https://github.com/siyuan-note/siyuan/issues/19411
Daniele1f5ffdb2568
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 5fe535c09c..9b66b41e83 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -1224,6 +1224,11 @@ export const activeBlur = (force = false) => {export const initKeyboardToolbar = () => {let composing = false;+ window.addEventListener("siyuan-mobile-keyboard-hiding", () => {+ // 键盘退场前先隐藏工具栏,焦点和选区由原生端在动画结束后清理。+ preventKeyboardToolbarRender();+ hideKeyboardToolbar();+ });document.addEventListener("focusin", () => {if (["INPUT", "TEXTAREA"].includes(document.activeElement?.tagName) &&!document.getElementById("keyboardToolbar").contains(document.activeElement)) {