Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135481

Android TV system keyboard doesn't process input correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.3, 6.8.3, 6.9.0
    • None
    • - A TCL running Android TV OS 11
      - A Hisense running Android TV OS 10
      - A FireTV 4K (2nd gen) stick running FireOS 8 (based on Android 11)

      Tested with 6.6.3, 6.8.3, 6.9.0. Android API lev 34
    • Android
    • 2025wk16s1QtforAndroid, 2025wk18s1QtforAndroid

    Description

      On Android TV with a remote, the system keyboard and the input field behave erratically and are not in sync, corrupting input. Using the following:

      Window {
          width: 640
          height: 480
          visible: true
      
          Column {
              width: 400
              anchors.centerIn: parent
      
              TextInput {
                  id: input
                  height: 40
                  width: 300
                  text: "Input field"
                  color: "black"
                  focus: true
              }
      
              Text {
                  text: "Value: " + input.text
                  font.bold: true
              }
          }
      }
      

      On all other platforms, including mobile with a pop-up keyboard, this responds as expected and the matching output field stays in sync.  However on TVs, if you simply key in an 'x', then the input is corrupted with a copy of some of it's existing text appended.   If you start hitting backspace, you can erase the 'extra' content and eventually it will again append some of the remaining text.  Basically it's very broken.

      Also, on all other platforms the display field matches the input field per-keystroke.  The  TV system keyboard events aren't processed per keystroke, and you don't know what you'll get until you finish. 

      Tested on Google TV Android 10 & 11.  FireOS has a variant of this issue as well.  Qt 6.6.3 also has this issue though with slightly different behavior.

      Attachments

        1. inputBug1-1.jpg
          112 kB
          Terence Conklin
        2. inputBug2-1.jpg
          110 kB
          Terence Conklin
        3. QTBUG_135481_repro_and_FIX.mp4
          2.17 MB
          Bartlomiej Moskal

        Issue Links

          For Gerrit Dashboard: QTBUG-135481
          # Subject Branch Project Status CR V

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              tec Terence Conklin
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change