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:
parent
3b834de6bb
commit
c720dbdb23
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue