Mac: Call makeFirstResponder:nil from windowDidResignKey: in cefclient to remove focus from the browser view when the window becomes inactive (issue #565).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1025 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-01-18 17:30:48 +00:00
parent 3b834de6bb
commit c720dbdb23
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ static NSAutoreleasePool* g_autopool = nil;
} }
} }
- (void)windowDidResignKey:(NSNotification*)notification {
[(NSWindow*)[notification object] makeFirstResponder:nil];
}
// Called when the window is about to close. Perform the self-destruction // Called when the window is about to close. Perform the self-destruction
// sequence by getting rid of the window. By returning YES, we allow the window // sequence by getting rid of the window. By returning YES, we allow the window
// to be removed from the screen. // to be removed from the screen.