Nitrox icon indicating copy to clipboard operation
Nitrox copied to clipboard

Defocus chat input field on enter and refocus on 'Y' press

Open Measurity opened this issue 1 year ago • 0 comments

Describe the issue

Chat doesn't defocus when you press enter (if you hold enter and type you'll immediately submit the letter). Make it so that:

  1. Enter defocuses the input
  2. Y (default chat key) refocuses the input, always (even when in-game cursor is active).

This makes it more inline with other games like Counter Strike 2 or Deep Rock Galactic.

Related code

https://github.com/SubnauticaNitrox/Nitrox/blob/cfc08f3cc1174e551bddfb2dabaec1f6f34cc1a3/NitroxClient/MonoBehaviours/Gui/Chat/PlayerChatInputField.cs#L101-L115

Measurity avatar Aug 09 '24 17:08 Measurity