I’m trying to force a TextBox to keep focus as the user clicks other buttons by calling CaptureFocus()
immediately inside a FocusLost
event. This causes the client to enter some kind of infinite loop where the keyboard opens and closes every frame and the whole client locks up.
The code is very simple. It just looks like this:
textBox:CaptureFocus()
textBox.FocusLost:Connect(function()
textBox:CaptureFocus()
end)
I’ve tested this on PC and iOS and so far it only happens on iOS. I haven’t tested on Android.
Expected behavior
I expect the keyboard to stay on screen when the TextBox tries to lose focus.