Chromium Code Reviews| Index: chrome/browser/ui/cocoa/base_bubble_controller.mm |
| diff --git a/chrome/browser/ui/cocoa/base_bubble_controller.mm b/chrome/browser/ui/cocoa/base_bubble_controller.mm |
| index fad938f381753510dd6ebe7abd54b47d80ef7c56..9e0d556f95e9488daea8638b59d853e5fc233721 100644 |
| --- a/chrome/browser/ui/cocoa/base_bubble_controller.mm |
| +++ b/chrome/browser/ui/cocoa/base_bubble_controller.mm |
| @@ -205,11 +205,13 @@ |
| object:window]; |
| // The eventTap_ catches clicks within the application that are outside the |
| - // window. |
| + // window. This only matters if the window is key. |
|
Robert Sesek
2013/11/04 23:49:18
I'd put this comment closer to where this is imple
groby-ooo-7-16
2013/11/05 00:51:48
Done.
|
| eventTap_ = [NSEvent |
| addLocalMonitorForEventsMatchingMask:NSLeftMouseDownMask |
| handler:^NSEvent* (NSEvent* event) { |
| if (event.window != window) { |
| + if (![window isKeyWindow]) |
|
Robert Sesek
2013/11/04 23:49:18
Comment please.
groby-ooo-7-16
2013/11/05 00:51:48
Done.
|
| + return event; |
|
Robert Sesek
2013/11/04 23:49:18
nit: blank line after.
groby-ooo-7-16
2013/11/05 00:51:48
Done.
|
| // Call via the runloop because this block is called in the |
| // middle of event dispatch. |
| [self performSelector:@selector(windowDidResignKey:) |