diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-15 12:32:23 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-16 19:29:36 +0200 |
commit | 79a11470f3c4c61951906223f97001a77ce36500 (patch) | |
tree | 8a657ad0d6ea0e441488ccc4ac6ee4cf840efa9f /src/widgets/widgets/qcombobox.cpp | |
parent | 56d6a360206c7bd93e6503a63daf1517ff40a1d4 (diff) |
Accessibility: don't emit focus change when reason is window activation
If a window becomes active, then the accessibility system gets informed
about that already. Qt puts focus on the focus child of the activated
window afterwards, and if this emits another accessibility event, then
accessibility clients like Windows Narrator will stop reading the
activated window, and instead read about the focused widget.
This makes dialogs like message boxes poorly accessible.
Accessibility clients already know that a window became active, and can
query Qt about the focused child within that window.
Amend test case.
Fixes: QTBUG-101585
Pick-to: 6.4 6.3 6.2
Change-Id: I2d6bff7c415a6f29c4a4f7f4e4be38079fb976ca
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/widgets/widgets/qcombobox.cpp')
0 files changed, 0 insertions, 0 deletions