Loosing focus when setting text on TextField

Hi guys, I am working on the chat component for my App. For now I am keeping it up simple. “Enter” sends the message. So I Created a KeyDown listener:

if (e.keycode==13){
input.text = ‘’;

And the problem I am having is when I change the text ( to clean up the input). I lost the focus. So I have to touch the input again, to gain the focus. I tried to force it ( Lib.current.stage.focus = input ) and several other weird workaorunds but nothing seems to work. Any Ideas?

Best Regards

P.S. It behaves the same on both Android and HTML5

Have you tried textField.setSelection(0, 0)?

YOU ARE MY HERO!!!:heart_eyes: