diff options
author | hirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-11 10:34:26 +0000 |
---|---|---|
committer | hirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-11 10:34:26 +0000 |
commit | efadf73e4b25d03cb81a50d36883737fd2e817d1 (patch) | |
tree | e8eee38032105a7f45f29adca7577fb3b0a02e64 /ui/webui | |
parent | 7e40b5cda52a38ed754fb443c80b80bbff1ec33e (diff) | |
download | chromium_src-efadf73e4b25d03cb81a50d36883737fd2e817d1.zip chromium_src-efadf73e4b25d03cb81a50d36883737fd2e817d1.tar.gz chromium_src-efadf73e4b25d03cb81a50d36883737fd2e817d1.tar.bz2 |
Made cr-dialog-frame not focused by Tab key.
In the situation of pressing the Tab key repeatedly, when cr-dialog-frame has
focus, it looks like focus is disappeared. This CL change the tabIndex assigned
to cr-dialog-frame from 0 to -1. Elements that have negative tabIndex can be
focused but are not traversed by Tab key.
BUG=239306
TEST=manually
Review URL: https://chromiumcodereview.appspot.com/16123002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/webui')
-rw-r--r-- | ui/webui/resources/js/cr/ui/dialogs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/webui/resources/js/cr/ui/dialogs.js b/ui/webui/resources/js/cr/ui/dialogs.js index 516ca18..9d2f70e 100644 --- a/ui/webui/resources/js/cr/ui/dialogs.js +++ b/ui/webui/resources/js/cr/ui/dialogs.js @@ -47,7 +47,9 @@ cr.define('cr.ui.dialogs', function() { this.frame_ = doc.createElement('div'); this.frame_.className = 'cr-dialog-frame'; - this.frame_.tabIndex = 0; + // Elements that have negative tabIndex can be focused but are not traversed + // by Tab key. + this.frame_.tabIndex = -1; this.container_.appendChild(this.frame_); this.title_ = doc.createElement('div'); |