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.

        For Gerrit Dashboard: QTBUG-85956
        # Subject Branch Project Status CR V

            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