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

Qt.inputMethod.visible still true after keyboard hidden by back button on android 11

    XMLWordPrintable

Details

    Description

      When the android back button is pressed to remove the keyboard, the Qt.inputMethod.visible flag is still true.
      This only happens when the input TextField has no predictive text active. It is not possible to clear the flag by hiding the keyboard programatically, using Qt.inputMethod.hide(). This does nothing.
      When the back button is pressed again, the visible flag is cleared. This "eats" the back button press as well, so the app does not respond to it.

      I have attached a small project that exposes this behavior.

      The app has been tested on an android 11 Google Nexus 4, but the bug has been reported on numerous android 11 devices by our users. Including Oneplus and Samsung devices.
      The Nexus phone uses the standard GBoard keyboard.

      Attachments

        Activity

          People

            qtandroidteam Qt Android Team
            reeft Thomas Andersen
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: