summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmwindow.cpp
diff options
context:
space:
mode:
authorEven Oscar Andersen <[email protected]>2025-08-22 16:36:21 +0200
committerEven Oscar Andersen <[email protected]>2025-08-25 17:50:37 +0200
commit692473bd503607384fc7c26eb5193f9cf0edf703 (patch)
tree0ff3bb0a477c84bd6b7101ec063709ba6758c430 /src/plugins/platforms/wasm/qwasmwindow.cpp
parent94221a8a860971930ebb63480afbebc7d594b5a6 (diff)
Clear focusHelper/innerHTML without looking at event/target II/II
The target does not match our inputElements so it can't be used. This is the second patch to handle a missed case. Pick-to: 6.10 Change-Id: I871257f19ce8011dce651983b335663bd21fc3c6 Reviewed-by: Morten Johan Sørvig <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindow.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp
index a3334b5b25a..f3882c8bfcd 100644
--- a/src/plugins/platforms/wasm/qwasmwindow.cpp
+++ b/src/plugins/platforms/wasm/qwasmwindow.cpp
@@ -645,7 +645,7 @@ void QWasmWindow::handleKeyEvent(const KeyEvent &event)
{
qCDebug(qLcQpaWasmInputContext) << "handleKeyEvent";
- if ((event.webEvent["target"] == m_inputElement) && QWasmIntegration::get()->wasmInputContext()) {
+ if (QWasmInputContext *inputContext = QWasmIntegration::get()->wasmInputContext(); inputContext->isActive()) {
handleKeyForInputContextEvent(event);
} else {
if (processKey(event)) {