fix(android): key code nil sometimes

This commit is contained in:
Andelf
2022-09-29 22:41:42 +08:00
parent 627bfcec9e
commit 71df39c184

View File

@@ -2780,7 +2780,8 @@
value (gobj/get input "value")
c (util/nth-safe value (dec current-pos))
[key-code k code is-processed?]
(if (and (mobile-util/native-android?)
(if (and c
(mobile-util/native-android?)
(or (= key-code 229)
(= key-code 0)))
[(.charCodeAt value (dec current-pos))