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

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.11, 6.5.3
    • None
    • Android

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes