fivem
fivem copied to clipboard
EnterCursorMode autofocus the text input of the windowed console
What happened?
When using native EnterCursorMode and the console is in windowed mode, all keys pressed during cursor mode will be entered into the console input.
Expected result
The focus of the input text should not be achieved.
Reproduction steps
- Open your console in “Windowed Console” mode
- Execute the native EnterCursorMode()
- Press any keys and you will see that you are typing in the console
Importancy
Slight inconvenience
Area(s)
FxDK, FiveM
Specific version(s)
FiveM b3570, fx:b18683/Lin
Additional information
No response
Could reproduce this on the current client, the windowed console grabs keyboard focus on its own while cursor mode is on. Opened a fix: https://github.com/citizenfx/fivem/pull/4392