Skip to content

Send accessible focus event after list view has focus

Fushan Wen requested to merge (removed):work/fuf/listviewa11y into kde/5.15

QListView::currentChanged sends an accessible focus event even if the list view doesn't have focus. For screen readers like Orca, accessible focus events will be ignored if the target item does not have focus when screen reader receives the event.

This corrects the behavior by calling QAbstractItemView::currentChanged before sending an accessible focus event.

Pick-to: 6.4 Change-Id: I71732f62e2f27d7856b4781b268495b88b24b715 Reviewed-by: Jan Arve Sæther jan-arve.saether@qt.io (cherry picked from commit 2cf5253b)

Build log: https://build.opensuse.org/package/live_build_log/home:fusionfuture:branches:KDE:Qt:5.15/libqt5-qtbase/openSUSE_Tumbleweed/x86_64

Merge request reports