Qt
  1. Qt
  2. QTBUG-58700

[Android] Text selection handles stay visible when keyboard is hidden

    Details

      Description

      When you have text selection handles visible and you hide Android virtual keyboard with 'back' key, then the handles stay visible. This is a nuisance especially if the handle covers something (see attached screenshot). This could be considered as regression, because the problem appeared in Qt 5.8.0 (due to larger change regarding text selection handle implementation).

      Comparing to other Android applications, like gmail or calendar, the handles are not hidden either when the keyboard is hidden, but there the handles disappear after a short while (this happens always i.e. also when the keyboard is visible, but the handles are not used). Therefore I suggest to implement similar timeout mechanism to Qt Android port. It would fix this bug and improve the overall Android experience as well.

      This problem was noticed with TextField item, but according to my understanding the same handles are used in other editors too. To reproduce, write some text to an editor and select/tap text such that a handler becomes visible, then hide the keyboard with the 'back' button.

      1. overlap keyboard.png
        172 kB
      2. overlap selection menu.png
        105 kB
      3. qtbug.png
        33 kB

        Issue Links

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

          Activity

          Hide
          Ebrahun Jahandar added a comment -

          this is bug introduce in qt 5.8, i have similar problem too, 5.7 is ok

          Show
          Ebrahun Jahandar added a comment - this is bug introduce in qt 5.8, i have similar problem too, 5.7 is ok
          Hide
          Eskil Abrahamsen Blomfeldt added a comment -

          Reported to be regression, so upgrading to P1

          Show
          Eskil Abrahamsen Blomfeldt added a comment - Reported to be regression, so upgrading to P1
          Hide
          J-P Nurmi added a comment -

          The handles used to have an idle timeout when they were implemented in QQC1. The new implementation in the platform plugin should have something similar?

          Show
          J-P Nurmi added a comment - The handles used to have an idle timeout when they were implemented in QQC1. The new implementation in the platform plugin should have something similar?
          Hide
          Ekkehard added a comment - - edited

          The handles also can overlap the virtual keyboard or the selection menu on top,
          if inside Flickable and scrolling while TextArea has focus.

          see screenshots above

          To get the double-tap-selection handlers I must set

          selectByMouse: true
          

          this is also required on iOS

          should work out of the box

          From J-P Nurmi I learned that this is in conflict with Flickable and scrolling multi line TextArea.
          My workaround: if textArea has activeFocus to provide a Button to toggle selectByMouse on/off

          blogged about workarounds: https://appbus.wordpress.com/2017/03/25/text-selection-handles-qt-5-8/

          Show
          Ekkehard added a comment - - edited The handles also can overlap the virtual keyboard or the selection menu on top, if inside Flickable and scrolling while TextArea has focus. see screenshots above To get the double-tap-selection handlers I must set selectByMouse: true this is also required on iOS should work out of the box From J-P Nurmi I learned that this is in conflict with Flickable and scrolling multi line TextArea. My workaround: if textArea has activeFocus to provide a Button to toggle selectByMouse on/off blogged about workarounds: https://appbus.wordpress.com/2017/03/25/text-selection-handles-qt-5-8/

            People

            • Assignee:
              Olivier Goffart (Woboq GmbH)
              Reporter:
              Qt Support
            • Votes:
              9 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes