mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 18:00:15 +01:00
🎨 Improve keyboard pop on HarmonyOS (Pura X)
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
929367aa3e
commit
736b808e49
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ export let keyboardLockUntil = 0;
|
|||
|
||||
export const callMobileAppShowKeyboard = () => {
|
||||
// 某些机型(比如鸿蒙 Pura X)在弹起键盘后会立即触发 activeBlur 导致键盘被关闭,所以在主动唤起键盘时锁定一段时间,禁止 activeBlur 关闭键盘
|
||||
// 每次主动唤起键盘时,锁定接下来的 300ms 不允许通过 activeBlur 关闭
|
||||
// 每次主动唤起键盘时,锁定接下来的 200ms 不允许通过 activeBlur 关闭
|
||||
keyboardLockUntil = Date.now() + 200;
|
||||
|
||||
if (window.JSAndroid && window.JSAndroid.showKeyboard) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue