Skip to content

Commit

Permalink
wasm: add input context composition WA for ibus
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit c494ed8)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit a338cae)
Reviewed-by: Morten Johan Sørvig <[email protected]>
  • Loading branch information
Inho Lee committed Sep 18, 2024
1 parent c5f8fff commit 8b083f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/platforms/wasm/qwasmwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b083f4

Please sign in to comment.