[Laszlo-user] sendEvent
André Bargull
a.bargull at intensis.de
Tue Jan 8 13:25:02 PST 2008
You need to use "LzFocus.setFocus(anyview)" to focus a view.
- André
> I'm trying to use an inputtext element to capture some user text.
> as a convenience, I'm sending it a onfocus.sendEvent() once the inputtext
> element
> is instantiated.
>
> However, I am seeing strange behaviour in that when I click outside the
> range of the
> inputtext box, a onblur event is not generated.
>
> This only happens the first time.
>
> When a mouse is used to generate an onfocus event, the blur event is
> properly generated.
>
> This is infact borne out by commenting line #22 in the attached sample.
>
> I'm using Laszlo 4.0.7 SDK + Vista + swf7.
>
> Wonder if I'm missing something or it is a bug. Would appreciate ideas on a
> workaround.
>
> Any help is appreciated.
>
> thanks,
> -shishir
More information about the Laszlo-user
mailing list