开发者

Setfocus property(Using custom autocomlpetion, I set the focus to auotoCompleteList at the time of adding this list as child)

I set the focus to auotoC开发者_运维知识库ompleteList at the time of adding this list as child but at the time of remove this popup i am getting whole text in textInput as selected with black background iwant to set the focus to this text field but not to select whole typed text.


I got the solution if anyone need this then use below code

//first set selection textInput.setSelection(textInput.text.length+1,textInput.text.length+1); // then set focus textInput.setFocus(); //and then use this to show cursor flash.ui.Mouse.show() ;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜