Temp fix for double tap failing to click focussed item
This is a temp fix for a bug on chromecast screen reader whereby the item that has a focus ring is not invoked after the user double taps the screen. When the touch exploration controller sets an anchor point explicitly, it issues a click gesture rather than a simulated tap when the user double clicks the screen. The click never gets processed properly by the background page because the ax tree thinks no window has 'keyboard' focus. This change defaults the focus_id field of AXTreeData to be 1 (the root node) since we only ever have one tree and one window to focus on anyway. A long term fix involves fixing other focus issues including (but not limited to) 1) giving the root window focus via Focus() call, 2) making sure the root window doesn't lose focus and 3) registering a native widget with the aura::Window or altering the ax_object_cache logic to not require it when trying to find the ax tree node corresponding to a window. Bug: b/111911092 Change-Id: Ide68dbae72288f58711d436db99ef495e5ea9eb0 Reviewed-on: https://chromium-review.googlesource.com/1152897Reviewed-by:Alex Sakhartchouk <alexst@chromium.org> Commit-Queue: Randy Rossi <rmrossi@chromium.org> Cr-Commit-Position: refs/heads/master@{#578657}
Showing
Please register or sign in to comment