diff options
author | Even Oscar Andersen <[email protected]> | 2025-08-22 16:36:21 +0200 |
---|---|---|
committer | Even Oscar Andersen <[email protected]> | 2025-08-25 17:50:37 +0200 |
commit | 692473bd503607384fc7c26eb5193f9cf0edf703 (patch) | |
tree | 0ff3bb0a477c84bd6b7101ec063709ba6758c430 /src/plugins/platforms/wasm/qwasmwindow.cpp | |
parent | 94221a8a860971930ebb63480afbebc7d594b5a6 (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.cpp | 2 |
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)) { |