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 <lorn.potter@qt.io>
(cherry picked from commit c494ed87382605bdafa23f15d79c2a44e75cf911)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Inho Lee 2024-09-02 14:33:52 +02:00 committed by Qt Cherry-pick Bot
parent b0d73b947f
commit a338caec1b

View File

@ -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