From a43439c1dff045a82510944159cd67dcf9258c54 Mon Sep 17 00:00:00 2001 From: "khorimoto@chromium.org" Date: Fri, 11 May 2012 04:16:34 +0000 Subject: [PATCH] Changes focus appropriately when the "Show advanced settings" link on the Settings page is clicked. BUG=113337 TEST= Review URL: https://chromiumcodereview.appspot.com/10339003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136501 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/options2/browser_options.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/browser/resources/options2/browser_options.js b/chrome/browser/resources/options2/browser_options.js index 35256911e04b..e11f83172710 100644 --- a/chrome/browser/resources/options2/browser_options.js +++ b/chrome/browser/resources/options2/browser_options.js @@ -77,6 +77,10 @@ cr.define('options', function() { self.toggleSectionWithAnimation_( $('advanced-settings'), $('advanced-settings-container')); + var focusElement = $('advanced-settings-container').querySelector( + 'button, input, list, select, a'); + if (focusElement) + focusElement.focus(); } $('advanced-settings').addEventListener('webkitTransitionEnd', this.updateAdvancedSettingsExpander_.bind(this)); -- 2.11.4.GIT