The following is a sample of what we are doing, demonstrated with "Pseudo Code:"
- Code: Select all
void Navigate(wchar_t *ws_Address)
{
cef_frame_t *CefFrame = CefBrowser->get_main_frame(CefBrowser);
CefFrame->load_url(CefFrame, ws_Address);
BaseRelease(CefFrame);
}
So if we was to call /Navigate http://www.google.com/ from our main application window, the focus would go from our main window, to the CefBrowser window. Is there a way to stop this?
In the handler documentation (C-Interface), there's a call back "handle_take_focus," but from my understanding this is currently not into effect (since the value is still currently being ignored), and I also think that this is only for HTML Components/Elements. There's also a "set_focus(cef_browser_t *, int)" function that's part of the _cef_browser_t structure, but if I am reading the comments right this is only for removing the focus on the window.