Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
4.8.5
-
Windows 7 x64
Description
Attached two QML files that depicts what behavior we are observing and what we are really expecting to get.
In the focusToggled.qml file, there is a rectangle inside FocusScope. When we run this example and press enter, we will see how root loses the focus and gets it back. See the console output.
In the second focusNotToggled.qml file, we have two rectangles. you can change the focus between them using arrow keys. Observe the console, root does not loose its focus. As in the first case, we use forceActiveFocus() to set the focus inside FocusScope. But, in the first case it does not work how it should.
The root element should not lose focus (and gain focus unnecessarily) in the focusToggled.qml file.