From 2b57f5460c86978c881bccd79d9272388a98312f Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Mon, 4 May 2009 18:05:14 +0000 Subject: 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 --- chrome/browser/tab_contents/tab_contents_view_mac.mm | 1 + 1 file changed, 1 insertion(+) (limited to 'chrome/browser/tab_contents') 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() { -- cgit v1.1