summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmwindow.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@qt.io>2025-09-24 14:20:42 +1000
committerLorn Potter <lorn.potter@qt.io>2025-11-26 11:57:26 +1000
commit56c2d82d7b40362f2676ee372f608eac8f9747f7 (patch)
tree4006995d41ffc22ab800ec592a0029d080ead89e /src/plugins/platforms/wasm/qwasmwindow.cpp
parent6d90c9e6d209428e28cca5b3b7106673dde33dce (diff)
wasm: fix composition for mobile input
Take into account replacement range from the native inputmethod. also remove unused, commented out code Pick-to: 6.10 Fixes: QTBUG-138087 Fixes: QTBUG-138821 Change-Id: Ie4616f5dcc60c2e3e7d7b9c3a41373642567e9e4 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindow.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmwindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp
index a88299975d0..d318c977a90 100644
--- a/src/plugins/platforms/wasm/qwasmwindow.cpp
+++ b/src/plugins/platforms/wasm/qwasmwindow.cpp
@@ -761,12 +761,10 @@ void QWasmWindow::handleCompositionEndEvent(emscripten::val event)
void QWasmWindow::handleBeforeInputEvent(emscripten::val event)
{
- qWarning() << Q_FUNC_INFO;
-
if (QWasmInputContext *inputContext = QWasmIntegration::get()->wasmInputContext(); inputContext->isActive())
inputContext->beforeInputCallback(event);
- // else
- // m_focusHelper.set("innerHTML", std::string());
+ else
+ m_focusHelper.set("innerHTML", std::string());
}
void QWasmWindow::handlePointerEnterLeaveEvent(const PointerEvent &event)