From 8b083f426752324314c2d1aa278eb9b660ac1b92 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I179d32d656bd38990de4b656757957e26935376f Reviewed-by: Lorn Potter (cherry picked from commit c494ed87382605bdafa23f15d79c2a44e75cf911) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit a338caec1b4569f3aef3f1622389fe26278eb4e3) Reviewed-by: Morten Johan Sørvig --- 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 20cb8250845..0c0a15bd4c5 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -150,7 +150,7 @@ QWasmWindow::QWasmWindow(QWindow *w, QWasmDeadKeySupport *deadKeySupport, 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