Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4385)

Unified Diff: chrome/browser/resources/settings/a11y_page/a11y_page.js

Issue 2811693004: MD Settings: Restore focus after exiting various subpages. (Closed)
Patch Set: Address comments, fix test. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/a11y_page/a11y_page.js
diff --git a/chrome/browser/resources/settings/a11y_page/a11y_page.js b/chrome/browser/resources/settings/a11y_page/a11y_page.js
index be4d808a838a3515352591db4a3138d080dcaf0c..0bcbcbcfb318c7c18effa78a57664641665c7918 100644
--- a/chrome/browser/resources/settings/a11y_page/a11y_page.js
+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.js
@@ -27,6 +27,20 @@ Polymer({
type: Object,
notify: true,
},
+
+ /** @private {!Map<string, string>} */
+ focusConfig_: {
+ type: Object,
+ value: function() {
+ var map = new Map();
+// <if expr="chromeos">
+ map.set(
+ settings.Route.MANAGE_ACCESSIBILITY.path,
+ '#subpage-trigger .subpage-arrow');
+// </if>
+ return map;
+ },
+ },
},
// <if expr="chromeos">

Powered by Google App Engine
This is Rietveld 408576698