I have discovered that when I call :CaptureFocus()
twice on a text box while being focused on another text box will trigger a false enter on that other text box. This also occurs on the new chat.
How to reproduce this:
I will make a local rbxl file that shows a scenario of this issue.
TextBoxIssue.rbxl (58.0 KB)
First, run the game, type anything in the new chat bar and remain focused up to 6 seconds. Then, there will be a false enter event triggered.
The local script is in the ScreenGui
inside StarterGui
.
Sometimes it may also error when it happens: