summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 18:05:14 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 18:05:14 +0000
commit2b57f5460c86978c881bccd79d9272388a98312f (patch)
tree595d6d5b453236f83903d6f70194cda2d5a8bc81 /chrome/browser/tab_contents
parent9495e20a61ef7cb79a6ca2e3a70a1042a252bee6 (diff)
downloadchromium_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.mm1
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() {