Use forceActiveFocus() method.
To get the keyboard focus, you have to set focus:true from the very root of all visual parents the control is attached. If the structure becomes complicated, you have no idea on where to "power on" and where not. In that case, use forceActiveFocus() to make any necessary attribute changes at once.
Man I had to throw away yesterday not knowing this. OTL
No comments:
Post a Comment