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

Unified Diff: chrome/browser/resources/settings/people_page/change_picture.js

Issue 2730873003: MD Settings: Change picture: Focus container (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/people_page/change_picture.js
diff --git a/chrome/browser/resources/settings/people_page/change_picture.js b/chrome/browser/resources/settings/people_page/change_picture.js
index 4bed8bffdb5603799a240f3f31c9d219e1331bbd..a893e0af2655f0f8e53db8b7726251e5718bf6ab 100644
--- a/chrome/browser/resources/settings/people_page/change_picture.js
+++ b/chrome/browser/resources/settings/people_page/change_picture.js
@@ -145,6 +145,9 @@ Polymer({
// when navigating away. The selector element doesn't fire its upward
// data binding unless its selected item has changed.
this.selectedItem_ = this.$.selector.selectedItem;
+ // Focus the container by default so that the arrow keys work (and since
+ // we use the focus highlight to show which picture is selected).
+ this.$.container.focus();
} else {
// Ensure we deactivate the camera when we navigate away.
this.selectedItem_ = null;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698