fivem icon indicating copy to clipboard operation
fivem copied to clipboard

EnterCursorMode autofocus the text input of the windowed console

Open JustMordeckai opened this issue 1 year ago • 1 comments

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

  1. Open your console in “Windowed Console” mode
  2. Execute the native EnterCursorMode()
  3. 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

JustMordeckai avatar Sep 03 '25 10:09 JustMordeckai

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

OneEarJoe5 avatar Nov 11 '26 16:11 OneEarJoe5