Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any Event fired when the player finished typing in the TextBox?

Asked by 6 years ago

I already know how to do this with PC, but what about mobile? When the player finishes typing with the mobile keyboard and tap the Enter button, is there any event fired when doing that?

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
6 years ago

There's TextBox.FocusLost:Connect(function(EnterPressed,InputObject), which will fire when the user uses any form of input to exit the textbox. EnterPressed will be true when they hit the enter button to exit the textbox, otherwise you'll have to rely on the InputObject which has the InputObject of the Input that canceled the textbox focus.

Ad

Answer this question