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:
parent
c31704d9aa
commit
e990495fdf
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue