the first key pressing is sometimes ignored when writing with Japanese IME. #15560

Closed
opened 2026-01-31 04:42:00 +00:00 by claunia · 2 comments
Owner

Originally created by @aca-ta on GitHub (Oct 16, 2021).

Windows Terminal version (or Windows build number)

10.0.22000.282 1.10.2714.0

Other Software

No response

Steps to reproduce

Write chacacters in romaji mode using Microsoft IME.

Expected Behavior

No response

Actual Behavior

For example, when typing the word sushi/すし, pressing the key 's', 'u', 's', 'h', 'i'. and press enter key to confirm the converted characters.
it is expected to be typed すし, but the first pressing 's' is ignored and typed うし, the character that should be typed when pressing 'u', 's', 'h', 'i'.
it doesn't occur except for the first keystroke. when typing sushi/すし, it only occures on the first 's' pressing.
I try with Google Japanese Input and Microsft IME and it occures with both.
it occures about once every ten times.
it doesn't occur when writing English.
and it doesn't occur with other terminals such as PuTTY or vscode terminal.

https://user-images.githubusercontent.com/5401476/137604003-33305c58-d18e-49c5-801d-280e2dd5fd84.mp4

Originally created by @aca-ta on GitHub (Oct 16, 2021). ### Windows Terminal version (or Windows build number) 10.0.22000.282 1.10.2714.0 ### Other Software _No response_ ### Steps to reproduce Write chacacters in romaji mode using Microsoft IME. ### Expected Behavior _No response_ ### Actual Behavior For example, when typing the word `sushi/すし`, pressing the key 's', 'u', 's', 'h', 'i'. and press enter key to confirm the converted characters. it is expected to be typed すし, but the first pressing 's' is ignored and typed `うし`, the character that should be typed when pressing 'u', 's', 'h', 'i'. it doesn't occur except for the first keystroke. when typing `sushi/すし`, it only occures on the first 's' pressing. I try with Google Japanese Input and Microsft IME and it occures with both. it occures about once every ten times. it doesn't occur when writing English. and it doesn't occur with other terminals such as PuTTY or vscode terminal. https://user-images.githubusercontent.com/5401476/137604003-33305c58-d18e-49c5-801d-280e2dd5fd84.mp4
Author
Owner

@htsnul commented on GitHub (Jan 13, 2022):

The problem occurs when the next IME input is started before the Enter key-up of the immediately preceding IME confirmation.

The first "s" of the second "sushi" is always missing in the following steps:

  1. "s" key down & up
  2. "u" key down & up
  3. "s" key down & up
  4. "h" key down & up
  5. "i" key down & up
  6. Enter key down
  7. "s" key down
  8. Enter key up
  9. "s" key up
  10. "u" key down & up
  11. "s" key down & up
  12. "h" key down & up
  13. "i" key down & up

You can avoid the problem by using Ctrl-M instead of Enter to confirm the IME.

@htsnul commented on GitHub (Jan 13, 2022): The problem occurs when the next IME input is started before the Enter key-up of the immediately preceding IME confirmation. The first "s" of the second "sushi" is always missing in the following steps: 1. "s" key down & up 2. "u" key down & up 3. "s" key down & up 4. "h" key down & up 5. "i" key down & up 6. Enter key down 7. "s" key down 8. Enter key up 9. "s" key up 10. "u" key down & up 11. "s" key down & up 12. "h" key down & up 13. "i" key down & up You can avoid the problem by using Ctrl-M instead of Enter to confirm the IME.
Author
Owner

@lhecker commented on GitHub (Jul 9, 2025):

I suspect this got resolved with the IME rewrite in #17067. Let me know if I got that wrong.

@lhecker commented on GitHub (Jul 9, 2025): I suspect this got resolved with the IME rewrite in #17067. Let me know if I got that wrong.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15560