Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4861

Inconsistent input options in Android, cause unreliable timebox input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 10.0.1
    • 9.5.1.2, 9.6.0
    • Components
    • Security Level: Jimmy
    • Android chrome

      tested keyboards:

      – Gboard

      – Samsung keyboard

      – Gboard (pinying input)

      Steps to Reproduce

      https://zkfiddle.org/sample/2vcj3e7/2-inconsistent-android-keyboards

      Run locally with the tablet-ui disabled

      https://www.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.zkmax.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

       

            jamson jamson
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: