| Index: chrome/browser/ui/cocoa/tabs/tab_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
|
| index 240d109a1015dbd751eaa87b74e9ce2841d969b1..ec6ca25d6c22845873572183cee2b2988a75ac54 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
|
| @@ -490,4 +490,10 @@ - (void)maybeStartDrag:(NSEvent*)event forTab:(TabController*)tab {
|
| [[target_ dragController] maybeStartDrag:event forTab:tab];
|
| }
|
|
|
| +- (void)keyUp:(NSEvent*)event {
|
| + unichar keyChar = [[event characters] characterAtIndex:0];
|
| + if (keyChar == '\r' || keyChar == '\n')
|
| + [self selectTab:self];
|
| +}
|
| +
|
| @end
|
|
|