diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 18:05:14 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 18:05:14 +0000 |
commit | 2b57f5460c86978c881bccd79d9272388a98312f (patch) | |
tree | 595d6d5b453236f83903d6f70194cda2d5a8bc81 /chrome/browser/tab_contents | |
parent | 9495e20a61ef7cb79a6ca2e3a70a1042a252bee6 (diff) | |
download | chromium_src-2b57f5460c86978c881bccd79d9272388a98312f.zip chromium_src-2b57f5460c86978c881bccd79d9272388a98312f.tar.gz chromium_src-2b57f5460c86978c881bccd79d9272388a98312f.tar.bz2 |
Fixes focus issues when browsing on Mac.
http://crbug.com/10032
TEST=Open a new tab and browse to www.google.com. Type something
and check that focus is correctly set to the text field.
Review URL: http://codereview.chromium.org/99327
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_view_mac.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm index adc9e22..662dd42 100644 --- a/chrome/browser/tab_contents/tab_contents_view_mac.mm +++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm @@ -104,6 +104,7 @@ void TabContentsViewMac::SizeContents(const gfx::Size& size) { } void TabContentsViewMac::Focus() { + [[cocoa_view_.get() window] makeFirstResponder:GetContentNativeView()]; } void TabContentsViewMac::SetInitialFocus() { |