From 13917772f0f3206cc7d17aa73de413174ec21ec6 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. Change-Id: I17fcb360b6655ace4fba7447eb85561ba75338a5 Reviewed-by: David Skoland Reviewed-by: Morten Johan Sørvig (cherry picked from commit a9f94d078a94ca15adf4d8143cba52c4369d45d5) Reviewed-by: Qt Cherry-pick Bot --- 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 00bad43191e..18b5f06f35f 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.cpp +++ b/src/plugins/platforms/wasm/qwasmintegration.cpp @@ -209,7 +209,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();