From a338caec1b4569f3aef3f1622389fe26278eb4e3 Mon Sep 17 00:00:00 2001 From: Inho Lee Date: Mon, 2 Sep 2024 14:33:52 +0200 Subject: [PATCH] wasm: add input context composition WA for ibus With IBUS, compositions are processed with "Dead" key. It is supposed to be processed with input context, so window's key event will be skipped. Fixes: QTBUG-117096 Pick-to: 6.7 Change-Id: I179d32d656bd38990de4b656757957e26935376f Reviewed-by: Lorn Potter (cherry picked from commit c494ed87382605bdafa23f15d79c2a44e75cf911) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/wasm/qwasmwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 85a2e252f11..b8b76cafe12 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -520,7 +520,7 @@ void QWasmWindow::handleKeyForInputContextEvent(const emscripten::val &event) return; } else if (keyString.size() != 1) { if (!wasmInput->preeditString().isEmpty()) { - if (keyString == "Process" || keyString == "Backspace") { + if (keyString == "Process" || keyString == "Backspace" || keyString == "Dead") { // processed by InputContext // "Process" should be handled by InputContext but // QWasmInputContext's function is incomplete now