diff options
author | Michael Weghorn <[email protected]> | 2023-11-04 22:55:03 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <[email protected]> | 2023-12-13 07:26:01 +0000 |
commit | 20904f131534967117a4f7941b9630f2604ff7f5 (patch) | |
tree | 37db4123b5cebadcf7460e63bdae0748a69d122f /src/tools/windeployqt/utils.cpp | |
parent | 2bbafaa1a4e81276e4cca9f4d03d8f15a605ed1a (diff) |
a11y: Only send focus event when item has focus
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
Change-Id: I5540cdfce6d0ed076d4bb871e5862fddcdf05941
Reviewed-by: Volker Hilsheimer <[email protected]>
(cherry picked from commit a149b3fd533525d0b260893019b41b300a554f8d)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 9cd1b8a28d4f24e9f25ce071421e2b61c96de1f5)
(cherry picked from commit dcdf76ac693455191c8b1c480a0956c22f5ac28e)
Diffstat (limited to 'src/tools/windeployqt/utils.cpp')
0 files changed, 0 insertions, 0 deletions