diff options
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents_view_mac.mm')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_view_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm index d9a3ada4..cb4d8924 100644 --- a/chrome/browser/tab_contents/tab_contents_view_mac.mm +++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm @@ -107,9 +107,10 @@ void TabContentsViewMac::Focus() { } void TabContentsViewMac::SetInitialFocus() { - // TODO(port): Set focus in the else case correctly. if (web_contents()->FocusLocationBarByDefault()) web_contents()->delegate()->SetFocusToLocationBar(); + else + [[cocoa_view_.get() window] makeFirstResponder:GetContentNativeView()]; } void TabContentsViewMac::StoreFocus() { |