修复window-parent引起的输入法位置问题

This commit is contained in:
杨红岩 2023-08-28 09:59:35 +08:00
parent ebaa9c90f4
commit c8cd9c921d

View File

@ -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