Nitrox
Nitrox copied to clipboard
Defocus chat input field on enter and refocus on 'Y' press
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:
-
Enterdefocuses the input -
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