From aa4c0aec9e695691df89a93202e95809d235f8aa Mon Sep 17 00:00:00 2001 From: zhangliyang Date: Fri, 27 Sep 2024 21:23:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20chinese=20input=20method=20local?= =?UTF-8?q?ization=20problem=20in=20NCW=20mode=20and=20cef=20102=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/details/QCefViewPrivate.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/details/QCefViewPrivate.cpp b/src/details/QCefViewPrivate.cpp index 6318dff..d97ab08 100644 --- a/src/details/QCefViewPrivate.cpp +++ b/src/details/QCefViewPrivate.cpp @@ -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);