PojavLauncher icon indicating copy to clipboard operation
PojavLauncher copied to clipboard

[BUG]Game works abnormally when use physical keyboard with IME

Open LeonXu98 opened this issue 10 months ago • 2 comments
trafficstars

Describe the bug

When you use a physical keyboard, if you wanna type some CJK charactors whih IME(for example:use Gboard type "我能吞下玻璃而不伤身体"), you have to tap "keyboard" button on touch screen. If you didn't tap "keyboard" button on touch screen, IME will not activated. After type finished, if you forgot to tap "keyboard" button on touch screen, you will get stuck in game and IME after you press Enter. Player will unable move in game by physical keyboard normally.

The log file and images/videos

Fig. 1 IME doesn't activited automaticly by physical keyboard Fig. 1 IME doesn't activited automaticly by physical keyboard Fig. 2 IME actived by touch "keyboard" key on screen Fig. 2 IME actived by touch "keyboard" key on screen Fig. 3 Type out CJK characters successful Fig. 3 Type out CJK characters successful Fig.4 Get struk by IME Fig.4 Get struk by IME

Steps To Reproduce

1. Make sure Gboard installed. After that, start PojavLauncher
2. Enter a server or local game.
3. Try to type some CJK characters with physical keyboard in chat.
.. You will find out IME is not actived.
.. If you tap "keyboard" on touch screen, IME will actived. You can type CJK characters at this time.
... After you finish type, press Enter to send out message.
.... You will get struk by IME, player can't move by physical keyboard in game.

Expected Behavior

IME state toggle automaticly with a physical keyboard.

Platform

- Device model: 23116PN5BC (Xiaomi 14 Pro)
- CPU architecture: ARM64
- Android version: 15
- PojavLauncher version: foxglove-20241124-a5d02c1-v3_openjdk

Anything else?

No response

LeonXu98 avatar Jan 02 '25 06:01 LeonXu98