Merge revision 1025 changes:

- 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/branches/1364@1026 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-01-18 17:31:11 +00:00
parent c31704d9aa
commit e990495fdf
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
// sequence by getting rid of the window. By returning YES, we allow the window
// to be removed from the screen.