commit | ff808d82f7126425bafbea9425f5b963bf0a448c | [log] [tgz] |
---|---|---|
author | Kelvin Jiang <kelvinjiang@chromium.org> | Thu Jan 17 03:27:16 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 17 03:27:16 2019 |
tree | b4546d3f44c8c9c35c38ae75a16ff888183730fe | |
parent | a315b599864661f4e2dc3e42d33a2e6fab5dcb80 [diff] |
[Extensions] Fix keyboard focus behavior for activity log page This CL fixes keyboard focus for the activity log page by introducing these 2 behaviors: 1) When the activity log page is entered either through the detail view or via url, the back button is focused. 2) When the user navigates back from the activity log page to the detail view page, the View Activity Log button/link is focused. Patchset >1 achieves this by using a flag stored in manager.js which indicates if the previous view was the activity log. This flag is set to true by an event which is fired when the user is about to exit the activity log and is set back to false by manager.js in onViewEnterStart. The detail view page uses the flag upon onViewEnterStart to determine which element should receive focus. This is safe as onViewEnterStart is bubbled up in manager.js later so the flag is safely reset. Bug: 908598 Change-Id: I58bfda628aa347357315f483f3859856c7264196 Reviewed-on: https://chromium-review.googlesource.com/c/1410123 Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#623551}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .