Commit efeacec
fix: Block triggering key after composition end
When pressing space or period to end Korean IME composition, the keydown
event fires before compositionend. This caused the triggering character
to be output before the composed text (e.g., "세요" becomes "세 요").
Added compositionJustEnded flag that blocks the first keydown after
composition ends, preventing the character order reversal.
Fixes hongsw#1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 3180b52 commit efeacec
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
377 | 385 | | |
378 | 386 | | |
379 | 387 | | |
| |||
690 | 698 | | |
691 | 699 | | |
692 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
693 | 709 | | |
694 | 710 | | |
695 | 711 | | |
| |||
0 commit comments