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){
send(input.text)
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
Luis
P.S. It behaves the same on both Android and HTML5