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 4ee4a99d95d959d2b14a514f56fe26881c525dbd..d0a5c3de96b85b540addbea15a2e666d67f3743e 100644 |
--- a/chrome/browser/ui/cocoa/tabs/tab_controller.mm |
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller.mm |
@@ -144,6 +144,12 @@ class MenuDelegate : public ui::SimpleMenuModel::Delegate { |
} |
- (IBAction)closeTab:(id)sender { |
+ if (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) && |
+ [[self target] respondsToSelector:@selector(closeOtherTabs:)]) { |
+ [[self target] performSelector:@selector(closeOtherTabs:) |
+ withObject:[self view]]; |
+ return; |
+ } |
if ([[self target] respondsToSelector:@selector(closeTab:)]) { |
[[self target] performSelector:@selector(closeTab:) |
withObject:[self view]]; |