Chat & keyboard gets stuck on mobile after teleporting

If you’re typing a chat message on mobile and then teleport to a new place, the keyboard stays open on your screen no matter what you do until you force close out of the Roblox app. I was able to replicate it 100% of the time on touchscreen devices. I tried to fix this by disabling chat right before the user teleports, but the issue still persists.

3 Likes

Already reported:

1 Like

I’ve had this happen to me before. Not necessary to close out roblox. Just click the roblox icon then exit out the icon and click chat again. Not sure it works for everyone. Can’t fully remember steps but yeah.

1 Like

I found a really stupid fix you can do on the developer side of this.

Right before the player is teleported, check if the player is currently focused on a TextBox using UserInputService:GetFocusedTextBox(). If it returns a textbox, we can just assume it’s the chat because trying to access the chat instance throws an error. So create a new TextBox, run :CaptureFocus() & then :ReleaseFocus() on it, and it solves the previous issue.

This method also brings up a new bug however, because running :CaptureFocus() on a different textbox when the player is typing in the chat also forces their unfinished message to send in the chat.

1 Like