diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2022-01-19 11:43:21 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2022-01-28 00:22:41 +0100 |
commit | f6ddb3e921e39cf165fcc184e30bd16d5311c575 (patch) | |
tree | deb7d5dff8e5423362e679f24ec6647a5bb7faa6 /src/corelib/io/qurl.cpp | |
parent | c1a93b20ff1fec370b2483276b74f07eb54486ef (diff) |
Android: explicitly remove accessibility focus when element is hidden
Before this patch when an element that had an Accessibility focus was
hidden (for example, a button because of Accessibility.onPressAction),
the focus was still remaining on that hidden element. So the next
doubletaps on the screen caused the Accessibility.onPressAction() of the
hidden element to be executed again and again.
To fix this, we have to explicitly send a FOCUS_CLEARED event to the
Android OS, when the object is hidden.
Another needed fix is to set the m_focusedVirtualViewId in
notifyObjectFocus() properly.
Fixes: QTBUG-93393
Pick-to: 6.3 6.2 5.15
Change-Id: I6ff8a19868b96842719924037545c4ecc91e0dad
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/corelib/io/qurl.cpp')
0 files changed, 0 insertions, 0 deletions