From a9f94d078a94ca15adf4d8143cba52c4369d45d5 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Thu, 29 Sep 2022 11:48:36 +1000 Subject: [PATCH] wasm: unblock virtual keybaord MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QtVirtualKeyboard can be used for non touch apps as well. We were not taking this into consideration and only allowing touch devices to access it. Pick-to: 6.4 Change-Id: I17fcb360b6655ace4fba7447eb85561ba75338a5 Reviewed-by: David Skoland Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/wasm/qwasmintegration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp index 2cec4821f0..39eea05ad3 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.cpp +++ b/src/plugins/platforms/wasm/qwasmintegration.cpp @@ -212,7 +212,7 @@ QPlatformOpenGLContext *QWasmIntegration::createPlatformOpenGLContext(QOpenGLCon void QWasmIntegration::initialize() { - if (touchPoints < 1) // only touchscreen need inputcontexts + if (qgetenv("QT_IM_MODULE").isEmpty() && touchPoints < 1) return; QString icStr = QPlatformInputContextFactory::requested();