Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T48742457: Support role=application web widgets
After: The green rect follows web focus. Before: TalkBack tries to read the TV apps as a textual documents. Background: Within <xxx role=application>...</xxx>, screen readers should not consume DPAD (arrow key) events. Web apps or widgets with role=application have, per the WAI-ARIA spec's contract, their own JavaScript logic for moving focus. I learned this through: w3c/aria#1049 Problem: TalkBack completely neglects role=application. Solution: Whenever accessibility focus (the green rect) goes to a WebView with <body role=application> or anywhere within such a document, don't consume the DPAD events; let them through. Testing done: Open a simple TV web app that has <body role=application>. Notice: Once the web view gets accessibilty focus, TalkBack won't eat (consume) DPAD key events and the the key events reach the web page's key handler in JavaScript. Signed-off-by: Hugo Holgersson <[email protected]>
- Loading branch information