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

Vanessa2cf8910d24db
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index bdaa8f2f0b..ee90893304 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -532,11 +532,9 @@ export const initKeyboardToolbar = () => {
}
});
toolbarElement.addEventListener(isInAndroid() || isInHarmony() ? "touchend" : "click", (event) => {
- console.log("moved", moved);
if (moved) {
return;
}
- console.log("touchend");
const protyle = getCurrentEditor()?.protyle;
const target = event.target as HTMLElement;
const slashBtnElement = hasClosestByClassName(event.target as HTMLElement, "keyboard__slash-item");
@@ -647,6 +645,9 @@ export const initKeyboardToolbar = () => {
const oldScrollTop = protyle.contentElement.scrollTop;
renderTextMenu(protyle, toolbarElement);
showKeyboardToolbarUtil(oldScrollTop);
+ if (window.JSAndroid && window.JSAndroid.hideKeyboard) {
+ window.JSAndroid.hideKeyboard();
+ }
}
return;
} else if (type === "moveup") {