Commit 4c21432
wasm: simplify compose key handling
Use keyCode 229 to determine if the key event is a part
of input method compose, as documented by MDN:
developer.mozilla.org/en-US/docs/Web/API/Element/keydown_event#keydown_events_with_ime
This restores correct key event behavior where KeyPress
events are sent for key events which are not part of
an input method compose.
Task-number: QTBUG-141226
Change-Id: I681ec15cae70c00049c9be03f6ea98222498ba6a
Reviewed-by: Lorn Potter <lorn.potter@qt.io>
(cherry picked from commit 9af69e8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>1 parent bd60840 commit 4c21432
File tree
3 files changed
+15
-44
lines changed- src/plugins/platforms/wasm
3 files changed
+15
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
699 | 699 | | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
736 | 703 | | |
737 | 704 | | |
738 | 705 | | |
| |||
0 commit comments