mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-26 17:07:47 +01:00
Merge revision 568 changes:
- Execute the CefFocusHandler::OnSetFocus callback for calls to CefBrowser::SetFocus and mouse clicks on the view (issue #563). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1025@637 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
7da9e04940
commit
93e32f3c9b
@ -104,21 +104,8 @@ LRESULT CALLBACK CefBrowserImpl::WndProc(HWND hwnd, UINT message,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_SETFOCUS:
|
case WM_SETFOCUS:
|
||||||
if (browser) {
|
if (browser)
|
||||||
WebViewHost* host = browser->UIT_GetWebViewHost();
|
browser->SetFocus(true);
|
||||||
if (host) {
|
|
||||||
bool handled = false;
|
|
||||||
CefRefPtr<CefClient> client = browser->GetClient();
|
|
||||||
if (client.get()) {
|
|
||||||
CefRefPtr<CefFocusHandler> handler = client->GetFocusHandler();
|
|
||||||
if (handler.get())
|
|
||||||
handled = handler->OnSetFocus(browser, FOCUS_SOURCE_SYSTEM);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!handled)
|
|
||||||
browser->UIT_SetFocus(host, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_ERASEBKGND:
|
case WM_ERASEBKGND:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user