mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@ -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.
|
||||||
|
Reference in New Issue
Block a user