diff --git a/cef/browser-window-lcl.go b/cef/browser-window-lcl.go index 3dcb9318..37259bc5 100644 --- a/cef/browser-window-lcl.go +++ b/cef/browser-window-lcl.go @@ -504,11 +504,6 @@ func (m *LCLBrowserWindow) ChromiumCreate(config *TCefChromiumConfig, defaultUrl } m.Chromium().SendCaptureLostEvent() }) - m.Chromium().SetOnGotFocus(func(sender lcl.IObject, browser *ICefBrowser) { - if m.IsValid() { - m.WindowParent().SetFocus() - } - }) // 主窗口、子窗口chromium检测 if m.WindowProperty().WindowType != consts.WT_DEV_TOOLS { window.CurrentBrowseWindowCache = m