提交 719c8df4 编写于 作者: yanghye's avatar yanghye

v2.0 Fixed Chinese input and gtk3 issues for linux packaging

上级 ba3e577e
......@@ -81,7 +81,7 @@ func chromiumOnBeforeContextMenu(sender lcl.IObject, browser *ICefBrowser, frame
return
}
if winInfo := BrowserWindow.GetWindowInfo(browser.Identifier()); winInfo != nil {
//开发者工具和显示源代码不展示框架自定义菜单
//开发者工具和显示源代码不展示自定义默认菜单
if winInfo.WindowType() == WT_DEV_TOOLS || winInfo.WindowType() == WT_VIEW_SOURCE {
return
}
......
......@@ -110,7 +110,6 @@ func (m *browserWindow) appContextInitialized(app *TCEFApplication) {
vFrameBrowserWindow.registerPopupEvent()
vFrameBrowserWindow.registerDefaultEvent()
vFrameBrowserWindow.windowComponent.SetOnCanClose(func(sender lcl.IObject, window *ICefWindow, aResult *bool) {
fmt.Println("OnCanClose")
*aResult = true
app.QuitMessageLoop()
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册