I intentionally called pass.focus later to be sure that all fields are initialized and shown. But it just doesn't work (at least, in JavaScript): focus is on host field, and I can do nothing about it. Is it a bug, or am I missing something?
If it's a bug, could someone please provide me a workaround, since I really need to set focus?
andyMon 14 Nov 2011
fwt::Text probably needs to override focus handling - you can try adding (in TextPeer.js):
dsav Mon 14 Nov 2011
Please consider the following code:
I intentionally called
pass.focus
later to be sure that all fields are initialized and shown. But it just doesn't work (at least, in JavaScript): focus is onhost
field, and I can do nothing about it. Is it a bug, or am I missing something?If it's a bug, could someone please provide me a workaround, since I really need to set focus?
andy Mon 14 Nov 2011
fwt::Text probably needs to override focus handling - you can try adding (in TextPeer.js):
dsav Tue 15 Nov 2011
Thanks a lot! This allows me to set focus.
onFocus
listeners probably should be attached to control, too. Hope, this change will be pushed soon.andy Tue 15 Nov 2011
Great - pushed