wasm: unblock virtual keybaord

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 <david.skoland@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
(cherry picked from commit a9f94d078a94ca15adf4d8143cba52c4369d45d5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Lorn Potter 2022-09-29 11:48:36 +10:00 committed by Qt Cherry-pick Bot
parent f6ce72849b
commit 13917772f0

View File

@ -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();