private void OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { if (managedCefBrowserAdapter != null) { managedCefBrowserAdapter.SendFocusEvent(true); } }
public void SendMouseClick(int x, int y, MouseButtonType buttonType, bool mouseUp, CefEventFlags modifiers = CefEventFlags.None, int clickCount = 1) { if (!IsBrowserInitialized) { return; } BrowserHost.SendMouseClickEvent(x, y, buttonType, mouseUp, clickCount, modifiers); managedCefBrowserAdapter.SendFocusEvent(true); }