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

QQuickPopupPrivate::finalizeExitTransition() not giving focus to the highest-z Dialog with focus = true

XMLWordPrintable

    • 00ffca0a65f81071f07d9094c4189a2bb448a64e (qt/qtdeclarative/dev) d1ec5647571e60c22a3c0210a41ddca8649b7c64 (qt/qtdeclarative/6.2) fa6c1c72ca18c6a450162b8c2160eb4ef8c53900 (qt/tqtc-qtquickcontrols2/5.15)

      In QQuickPopupPrivate::finalizeExitTransition(), there is a loop searching for the next Dialog with highest-z. Once found, we test if it has focus = true and gives it activeFocus. If this Dialog has focus = false, the code does not try to give the focus to the next dialog in the chain.

      With the attached sample, if you press on the keyboard the keys Up, Left, Right and again Right, the focus is not given back to the Dialog1.

      Attaching the possible patch too.

        1. qtbug85956.zip
          2 kB
          Shveta Mittal
        2. qtbug85956_patch.diff
          1 kB
          Shveta Mittal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tokorpip Tomi Korpipää
            shmittal Shveta Mittal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes