| Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| index cbdbc703cd1c1592f58d667de3fac489f5371169..b86fd5541f34527ef4bbcf38841f86eec36d2cdc 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #import <Cocoa/Cocoa.h>
|
| +#import <Carbon/Carbon.h> // kVK_Return.
|
|
|
| #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h"
|
|
|
| @@ -789,6 +790,16 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
|
| [[self cell] setBackgroundColor:backgroundColor];
|
| }
|
|
|
| +-(void)keyDown:(NSEvent*)event {
|
| + // Since there is no default button in the bubble, it is safe to activate
|
| + // all buttons on Enter as well, and be consistent with the Windows
|
| + // implementation.
|
| + if ([event keyCode] == kVK_Return)
|
| + [self performClick:self];
|
| + else
|
| + [super keyDown:event];
|
| +}
|
| +
|
| - (BOOL)canBecomeKeyView {
|
| return YES;
|
| }
|
|
|