I've got a UIInput widget which works as intended, but seems to lose the focus after Return is pressed and the OnSubmit event is fired.
I get the OnSubmit event, and deal with the text, before setting the text to empty myUIInput.text = "";
At this point, the UIInput seems to lose focus, and only clicking inside it again makes it selected.
I've tried myUIInput.selected = true; but that doesn't seem to do anything. I've tried setting .selected to false then to true, but that doesn't help either.
How do I refocus the UIInput using code C# so that it's automatically ready to receive more input from the keyboard (as if I'd clicked inside it)?