Is there a way to detect when a player stops / has finished typing in a text box?

Is there a way to detect a when a player stops typing in a text box?, typing to only filter stuff after the player is finished typing

1 Like

This question is about when finished text in direct typing mode, correct?

Not sure what this means, probably because im dumb but kinda as in when a player hits enter in the textbox / clicks a new textbox

like they are no longer typing in that box anymore

I believe there is a textbox:IsFocused() function for things like that, if that returns false they’re probably done.

1 Like

yeah, but wont it return false even if they have never typed in it before?

You can find it by this

.Text==""

alright, but what if i already have preset text there?
wondering because i have randomly generated stuff

https://developer.roblox.com/en-us/api-reference/event/TextBox/FocusLost

This event/signal fires whenever the particular textbox is unfocused (return key pressed, element outside of the textbox is clicked etc.).

5 Likes

This would probably do it

1 Like