Mac: Remove duplicate focus change notification

This commit is contained in:
Marshall Greenblatt
2016-07-11 17:11:42 -04:00
parent a22b11d764
commit c8681ea3e8
2 changed files with 3 additions and 15 deletions

View File

@@ -92,18 +92,6 @@
[super dealloc];
}
// Called when we are activated (when we gain focus).
- (void)windowDidBecomeKey:(NSNotification*)notification {
if (browser_)
browser_->SetFocus(true);
}
// Called when we are deactivated (when we lose focus).
- (void)windowDidResignKey:(NSNotification*)notification {
if (browser_)
browser_->SetFocus(false);
}
- (BOOL)windowShouldClose:(id)window {
if (browser_ && !browser_->TryCloseBrowser()) {
// Cancel the close.