diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 22:25:44 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 22:25:44 +0000 |
commit | aa315392e9e631aec5c7be9bf71d34381bd123f2 (patch) | |
tree | 5ca7dcea56745d16dc99039c643981295051865f /chrome/browser/views/dom_view.cc | |
parent | 0d6938bed31fa03003ce0e9c94843a2dc1a4c851 (diff) | |
download | chromium_src-aa315392e9e631aec5c7be9bf71d34381bd123f2.zip chromium_src-aa315392e9e631aec5c7be9bf71d34381bd123f2.tar.gz chromium_src-aa315392e9e631aec5c7be9bf71d34381bd123f2.tar.bz2 |
When initially focused, the DOMUI (used for Gears dialog) would not focus the tab correctly.
BUG=14126
TEST=Use the "Create application shortcut..." menu to bring up the Gears dialog. Press tab, the focus should move around. Press ESC, the dialog should close.
Review URL: http://codereview.chromium.org/140001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/dom_view.cc')
-rw-r--r-- | chrome/browser/views/dom_view.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/views/dom_view.cc b/chrome/browser/views/dom_view.cc index d38a412..322281e 100644 --- a/chrome/browser/views/dom_view.cc +++ b/chrome/browser/views/dom_view.cc @@ -38,3 +38,7 @@ bool DOMView::SkipDefaultKeyEventProcessing(const views::KeyEvent& e) { // there. return views::FocusManager::IsTabTraversalKeyEvent(e); } + +void DOMView::Focus() { + tab_contents_->Focus(); +} |