summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorhirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-11 10:34:26 +0000
committerhirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-11 10:34:26 +0000
commitefadf73e4b25d03cb81a50d36883737fd2e817d1 (patch)
treee8eee38032105a7f45f29adca7577fb3b0a02e64 /ui
parent7e40b5cda52a38ed754fb443c80b80bbff1ec33e (diff)
downloadchromium_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')
-rw-r--r--ui/webui/resources/js/cr/ui/dialogs.js4
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');