When the current item in an item view has changed, only send an accessible focus event when the item view actually has focus. Sending a focus event when the item doesn't actually have focus is incorrect and breaks focus tracking in assistive technology, like the Orca screen reader. With this change in place, the focus event for the newly selected item/child still gets sent when changing the item using the keyboard or by clicking on it using the mouse (since the item view has focus in those cases), but not when it gets changed programmatically while the keyboard focus is somewhere else. Fixes: QTBUG-118800 Pick-to: 6.6 6.5 Change-Id: I5540cdfce6d0ed076d4bb871e5862fddcdf05941 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit a149b3fd533525d0b260893019b41b300a554f8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%