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

Unified Diff: chrome/browser/resources/chromeos/user_images_grid.js

Issue 10825141: Keep CrOS OOBE user image grid from stealing focus from the OK button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/chromeos/user_images_grid.js
diff --git a/chrome/browser/resources/chromeos/user_images_grid.js b/chrome/browser/resources/chromeos/user_images_grid.js
index def7d3bfa1e3504ed8711cec7236178285683c0e..36a8902e49a0f0459a0261cd2fae12b02b87d0c9 100644
--- a/chrome/browser/resources/chromeos/user_images_grid.js
+++ b/chrome/browser/resources/chromeos/user_images_grid.js
@@ -329,7 +329,10 @@ cr.define('options', function() {
this.removeItem(this.cameraImage_);
this.cameraImage_ = null;
}
- this.focus();
+
+ // Set focus to the grid, unless focus is on the OK button.
+ if (!document.activeElement || document.activeElement.tagName != 'BUTTON')
+ this.focus();
},
/**
« 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