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

Unified Diff: chrome/browser/resources/options/options_page.js

Issue 23039009: Settings: Profile name text field should have focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/options/options_page.js
diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js
index a9b7c84d29ae7fd4783a5b3cb9a4c0c44ce93992..0e827fdc4addfcd5ae7e2911c1a7a74bf6680568 100644
--- a/chrome/browser/resources/options/options_page.js
+++ b/chrome/browser/resources/options/options_page.js
@@ -283,7 +283,7 @@ cr.define('options', function() {
if (document.activeElement != document.body) {
if (FocusOutlineManager.forDocument(document).visible) {
overlay.focus();
- } else {
+ } else if (!overlay.pageDiv.contains(document.activeElement)) {
document.activeElement.blur();
}
}
« 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