-
Bug
-
Resolution: Unresolved
-
Major
-
9.5.1.2, 9.6.0, 10.0.0
-
Security Level: Jimmy
-
Android chrome
tested keyboards:
– Gboard
– Samsung keyboard
– Gboard (pinying input)
-
None
Steps to Reproduce
https://zkfiddle.org/sample/2vcj3e7/2-inconsistent-android-keyboards
Run locally with the tablet-ui disabled
Click in the timebox
Use the android virtual keyboard "backspace" key to delete the content
Current Result
Some keyboards delete the colon
Some keyboards do not delete the colons
Some keyboards can type free text
Some keyboards cannot type free text
Some keyboards will fail add more than 3 number characters
Some keyboards will cause the "addTime" method to add a large number of characters in one time.
(Ask matt for further test cases if needed)
test cases:
delete everything with backspace, type in 12:34 (including colon)
delete everything with backspace, type in 12345
delete everything with backspace, type foobar, then blur, then type a real time
Expected Result
consistent behavior regardless of virtual keyboard
Debug Information
each tested keyboard had a different sequence of events when using the backspace key.
backspace button on android virtual keyboard generates events:
– samsung keyboard: keydown / keyup
– Gboard (En-Us): keydown / input / keyup
– Gboard (pinyin): keydown / keyup/ select
PC:
– mobile emulation: keydown / select / keyup
– regular PC chrome: keydown / select / keyup
– FF / Edge same
– IE 11: keydown / keyup
This also apply to other key presses.
likely related to:
https://tracker.zkoss.org/browse/ZK-4721
Workaround
- relates to
-
ZK-5778 Automatically change input method when focusing specific input
- Open