summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm4
-rw-r--r--chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm2
2 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm
index 9ea5fe9..acb4bee 100644
--- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm
@@ -245,6 +245,10 @@ void DrawBorder(const NSRect& frame,
[path stroke];
}
+- (BOOL)canBecomeKeyView {
+ return YES;
+}
+
@end
@implementation ConstrainedWindowButtonCell
diff --git a/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm b/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
index 2c472ec..3e8f420 100644
--- a/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
+++ b/chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm
@@ -330,7 +330,7 @@ scoped_ptr<BubbleUi> ChooserBubbleController::BuildBubbleUi() {
[self setAnchorPoint:[self getExpectedAnchorPoint]];
[self showWindow:nil];
[[self window] makeFirstResponder:nil];
- [[self window] setInitialFirstResponder:connectButton_.get()];
+ [[self window] setInitialFirstResponder:tableView_.get()];
}
}