Skip to content

Commit

Permalink
fix: chinese input method localization problem in NCW mode and cef 10…
Browse files Browse the repository at this point in the history
…2 version
  • Loading branch information
liyoung1992 committed Sep 27, 2024
1 parent bfa6641 commit aa4c0ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/details/QCefViewPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ QCefViewPrivate::createCefBrowser(QCefView* view, const QString& url, const QCef
#endif
}

// Only test for CEF_VERSION_MAJOR 102
#if CEF_VERSION_MAJOR == 102
if (!isOSRModeEnabled_) {
//set Popup window to respond cef inputMethodEvent
windowInfo.SetAsPopup(nullptr, "QCefView");
}
#endif
// create the browser settings
CefBrowserSettings browserSettings;
QCefSettingPrivate::CopyToCefBrowserSettings(setting, &browserSettings);
Expand Down

0 comments on commit aa4c0ae

Please sign in to comment.