📱 输入框判断改进

This commit is contained in:
Vanessa 2026-02-10 20:09:05 +08:00
parent c94f39f88f
commit 830320096e

View file

@ -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;