From aa315392e9e631aec5c7be9bf71d34381bd123f2 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Fri, 19 Jun 2009 22:25:44 +0000 Subject: 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 --- chrome/browser/views/dom_view.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/views/dom_view.cc') 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(); +} -- cgit v1.1