From c94f39f88fcf301b2f61a467299ca11a25ec3a40 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 10 Feb 2026 20:03:00 +0800 Subject: [PATCH] =?UTF-8?q?:iphone:=20=E8=BE=93=E5=85=A5=E6=A1=86=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/mobile/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts index 5a4a19b45..3421fc873 100644 --- a/app/src/mobile/index.ts +++ b/app/src/mobile/index.ts @@ -20,7 +20,7 @@ import {bootSync} from "../dialog/processSystem"; import {initMessage, showMessage} from "../dialog/message"; import {goBack} from "./util/MobileBackFoward"; import {activeBlur, hideKeyboardToolbar, showKeyboardToolbar} from "./util/keyboardToolbar"; -import {getLocalStorage, isInAndroid, isInHarmony, writeText} from "../protyle/util/compatibility"; +import {getLocalStorage, writeText} from "../protyle/util/compatibility"; import {getCurrentEditor, openMobileFileById} from "./editor"; import {getSearch} from "../util/functions"; import {checkPublishServiceClosed} from "../util/processMessage"; @@ -101,7 +101,7 @@ class App { }); }, Constants.TIMEOUT_TRANSITION); } - if (isInAndroid() || isInHarmony()) { + if (window.JSAndroid && window.JSAndroid.showKeyboard || window.JSHarmony && window.JSHarmony.showKeyboard) { const wysisygElement = hasClosestByClassName(event.target, "protyle-wysiwyg", true); let editElement: HTMLElement; if ((event.target.tagName === "TEXTAREA" || @@ -116,7 +116,7 @@ class App { } } }); - if (isInAndroid() || isInHarmony()) { + if (window.JSAndroid && window.JSAndroid.showKeyboard || window.JSHarmony && window.JSHarmony.showKeyboard) { const __siyuan_original_focus = HTMLElement.prototype.focus; HTMLElement.prototype.focus = function (this: HTMLElement, ...args) { try {