Adjust focus when it is set to entire List in ARC
Sometimes Android sets the focus (via a11y event of VIEW_FOCUSED) to the collection (list/grid). This invokes ChromeVox to read entire content of the collection. This CL adds following logic to handle the situation: 1. If a role of a node is kList or kGrid, CanBeAccessibilityFocused returns false. 2. When a11y event of VIEW_FOCUSED is dispatched, instead of directly assigning event source as a focus, try to find the first focusable node under the event source. element of the node gets ChromeVox focus. Bug: b:130185621 Test: unit_tests --gtest_filter="AXTreeSourceArcTest.*" Test: manual. Open PlayStore/Hangouts and open drawer menu. The fist Change-Id: Ic85f05711fbd9cff2e2e074a01daa37c09d71bff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1942902 Commit-Queue: Hiroki Sato <hirokisato@chromium.org> Reviewed-by:Sara Kato <sarakato@chromium.org> Reviewed-by:
David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/master@{#721876}
Showing
Please register or sign in to comment