citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.57k stars 2.11k forks source link

text continues bug to be entered when closing input in NUI using IME #2387

Open MisakiVanilla opened 9 months ago

MisakiVanilla commented 9 months ago

What happened?

problem where text continues to be entered when inputting in IME enabled mode. I think this problem has been going on for several years.

I think this is the relevant Commits https://github.com/citizenfx/fivem/commit/91c997a0e51fec5df887bf4d90eb82ab501d6730

Many Japanese people are experiencing this Bug, and it also occurs on my Windows 10 and Windows 11 computers. I'm using Microsoft IME

workaround, disable the IME after entering characters in the Input box, and then close the Input Box.

https://github.com/citizenfx/fivem/assets/95254902/370348b3-3671-4af1-af16-bcf7144eee3a

Expected result

Characters are not entered when the input screen is closed

Reproduction steps

  1. Launch FiveM
  2. focus input box
  3. IME enable
  4. Close input box
  5. type enter some characters

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

FiveM ver. 7424

Additional information

No response

MisakiVanilla commented 9 months ago

For example, can it be done like this?

With the input text no longer visible, get the status of whether the IME is enabled or disabled, disable the IME,

IME state to be restored when input text gets focus.