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

Fullscreen virtual keyboard key handling

    XMLWordPrintable

Details

    • Android
    • ab98013ef (dev)
    • 2025wk16s1QtforAndroid, 2025wk18s1QtforAndroid, 2025wk20s1QtforAndroid, 2025wk22s1-2QtforAndroid

    Description

      Hello,

      I'm experiencing an issue when typing in a TextInput on Android when the keyboard is in fullscreen mode.

      • The Backspace key does not update the screen immediately. The last character is removed but only becomes visible after closing the keyboard.
      • The onTextChanged signal is triggered only for the Backspace key but not for other key presses, preventing me from processing text as needed.
      • This issue does not occur on desktop or in vertical mode.
      • In previous Qt versions (e.g., 6.6), the keyboard did not open in fullscreen mode, so this was not a problem (though I had to manually adjust the TextInput position for visibility).

      Testing Details:

      • Devices:
        • Virtual Androids: Android 9 and Android 13
        • Real Device: Motorola (Android 13)
      • Findings on Real Device:
        • When pressing Backspace, the cursor moves left, but the character is not deleted if multiple TextInputs exist.
        • Closing and reopening the virtual keyboard allows Backspace to work correctly (this workaround does not work on virtual devices).
      • Log Output:
        • Each time I press a key, the following log appears:
          D/InsetsController: show(ime(), fromIme=true)
        • However, when pressing Backspace, this log does not appear.
      • JDK Versions Tested:
        • Oracle JDK 19
        • OpenJDK 17

      I appreciate any guidance on resolving this issue. Let me know if you need further details.

      Thanks!

      Attachments

        1. error.webm
          281 kB
          Gustavo da Silva Serra
        2. ok.webm
          591 kB
          Gustavo da Silva Serra
        3. real_device.mp4
          3.23 MB
          Gustavo da Silva Serra
        4. KeyboardTest.zip
          2 kB
          Gustavo da Silva Serra
        5. QTBUG_135376_EMULATOR_REPRO.mp4
          8.05 MB
          Bartlomiej Moskal
        6. QTBUG_135376_EMU_GUS_683.mp4
          4.27 MB
          Gustavo da Silva Serra
        7. image-2025-04-19-13-59-27-871.png
          18 kB
          Gustavo da Silva Serra
        8. real_phone.mp4
          10.49 MB
          Gustavo da Silva Serra
        9. With_and_without_fix.mp4
          694 kB
          Bartlomiej Moskal
        10. app-min.zip
          86 kB
          Gustavo da Silva Serra

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              serra Gustavo da Silva Serra
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change