Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:iphone: 输入框判断改进

Vanessa830320096ee8
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 271ddf0d0e..173fe8409f 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -328,9 +328,14 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
if (viewsElement) {
viewsElement.classList.add("av__views--show");
}
- setTimeout(() => {
+ if (window.JSAndroid && window.JSAndroid.showKeyboard || window.JSHarmony && window.JSHarmony.showKeyboard) {
+ callMobileAppShowKeyboard();
+ setTimeout(() => {
+ searchElement.focus();
+ }, Constants.TIMEOUT_TRANSITION);
+ } else {
searchElement.focus();
- }, Constants.TIMEOUT_TRANSITION);
+ }
event.preventDefault();
event.stopPropagation();
return true;