How to manually set the position of the caret?

Hi there,

I use UEditableTextBox to input.
When the text changes I filter input so that there were only letters and numbers.

wLoginBox->OnTextChanged.AddDynamic(this, &USingupWidgets::OnLoginBoxTextChanged);

After I set the filtered text

wLoginBox->SetText(...)

If I start to edit the text, for example, in the beginning, then the carret jumps to the end. Is there any way to avoid it?

.

.

113977-43.png