Commit efd53e24 authored by dmazzoni@chromium.org's avatar dmazzoni@chromium.org

Keep CrOS OOBE user image grid from stealing focus from the OK button

BUG=140108
TBR=nkostylev

Review URL: https://chromiumcodereview.appspot.com/10825141

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149652 0039d316-1c4b-4281-b951-d872f2087c98
parent 1a554c09
...@@ -329,7 +329,10 @@ cr.define('options', function() { ...@@ -329,7 +329,10 @@ cr.define('options', function() {
this.removeItem(this.cameraImage_); this.removeItem(this.cameraImage_);
this.cameraImage_ = null; 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();
}, },
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment