diff --git a/cef1/tests/cefclient/cefclient_mac.mm b/cef1/tests/cefclient/cefclient_mac.mm index 6ae762546..2dcb3214b 100644 --- a/cef1/tests/cefclient/cefclient_mac.mm +++ b/cef1/tests/cefclient/cefclient_mac.mm @@ -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.