Run the application below:
The idea is that holding the Alt key down will toggle between two "modes". The mode is indicated by a highlighted button.
Try switching between the buttons. Now open the menu by clicking the "File" button. The menu will receive focus and the focus scope will lose it. If you then close the menu and try to switch between the buttons again, it won't work because the focus scope never regained focus (the root item now has it).
In this thread, Andrew said that restoring focus to the contentItem of ApplicationWindow would make this work, so we should try to do that.
|For Gerrit Dashboard: QTBUG-53275|
|158667,5||Popup: restore focus to contentItem of ApplicationWindow when closing||5.7||qt/qtquickcontrols2||Status: MERGED||-2||0|