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

Fullscreen virtual keyboard key handling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.8
    • None
    • Android 9
      Android 13
      Qt 6.8.*
    • Android
    • 2025wk16s1QtforAndroid, 2025wk18s1QtforAndroid

    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
        2. image-2025-04-19-13-59-27-871.png
          image-2025-04-19-13-59-27-871.png
          18 kB
        3. KeyboardTest.zip
          2 kB
        4. ok.webm
          591 kB
        5. QTBUG_135376_EMU_GUS_683.mp4
          4.27 MB
        6. QTBUG_135376_EMULATOR_REPRO.mp4
          8.05 MB
        7. real_device.mp4
          3.23 MB
        8. real_phone.mp4
          10.49 MB
        9. With_and_without_fix.mp4
          694 kB

        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:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change