I want to detect if a TextBox loses focus in a plugin widget, but
TextBox.FocusLost doesn’t work for me. I’m getting no errors or warnings, but the code inside of the event isn’t being ran.
Here’s the code for that event:
-- Note: PublishingFrame and VerifyIdentity are Frames; Code is the TextBox PublishingFrame.VerifyIdentity.Code.FocusLost:Connect(function(enterPressed) print("SAD!"); end);
I tried using
UserInputService.TextBoxFocusReleased, but that didn’t work either.
Here’s the code I tried for that event:
game:GetService("UserInputService").TextBoxFocusReleased:Connect(function(textBox) print("SAD!"); end);
This works on GUIs in-game, but not plugins for some reason.