Priority: P2: Important
Affects Version/s: 5.15.0, 5.15.6, 6.2.0
Component/s: Quick: Dialogs
Commits: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|
|376653,5||Fix activeFocus for highest-z popup||dev||qt/qtdeclarative||Status: MERGED||+2||0|
|376662,7||Fix activeFocus for highest-z popup||tqtc/lts-5.15||qt/tqtc-qtquickcontrols2||Status: MERGED||+2||0|
|376839,2||Fix activeFocus for highest-z popup||6.2||qt/qtdeclarative||Status: MERGED||+2||0|