mojira.dev
MC-311423

Moving then opening the inventory does not allow input from IME, and switching the input method immediately inserts previous inputs

Description

When I use a Chinese input method to move in the world (e.g., pressing W briefly to walk forward), then release W, open the inventory by pressing E, and try to type something into the search box, nothing happens – the search box does not accept any input.

However, if I then press Shift to switch the IME to English mode, the search box suddenly fills with a string of “w” characters (corresponding to the movement key I had pressed earlier, even though I had already released it). This suggests that the key press events were buffered and not processed until the IME mode changed.

Steps to Reproduce

  1. et your system input method to a Chinese IME (e.g., Microsoft Pinyin, Sogou, etc.).

  2. Launch the latest snapshot (26.3‑snapshot‑10) and enter a world.

  3. Press and release the W key briefly to move forward (do not hold it while opening the inventory).

  4. Press E to open the inventory screen.

  5. Click on the search box in the inventory and try to type something (e.g., “dirt”) using the Chinese IME – the box remains empty and does not accept any text.

  6. Press Shift to toggle the IME to English mode.

Actual Result

The search box stays empty during step 5. After step 6, the box instantly displays a series of “w” characters (multiple W’s) that were apparently stored from the earlier movement input, even though the W key was no longer pressed.

Expected Result

The search box should accept input normally regardless of IME mode, and no buffered movement keys should appear when switching languages.

Environment

Windows10,Microsoft Chinese Input Method

Linked issues

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

The text I described is not showing up

This issue is a duplicate of MC-311297.

gi306

Fantastime

Confirmed

Platform HC

Important

Input

26.3 Snapshot 10

26.3 Pre-Release 1

Retrieved