On 13/02/07, Dietrich Streifert <[EMAIL PROTECTED]> wrote:
>
>  The excerpt from this is that in the keydown listener first set the focus
> to the button (by calling setFocused(true)) and then reuse the event by
> calling dispatchEvent(event).
>  The call to setFocused should move the focus away from the text field so
> the value gets propagated to "value" property of the text field. After this
> the listener to the buttons "execute" event is able to retreive the value of
> the text field. This should work if the text field is a qx.ui.form.TextField
> instance.
>
>  This method also gives a visual feedback to the user because the button
> changes to the pressed state and back.
>
>  Hope this helps. Here is the code:
<snip>

Thanks Dietrich,

I now have it working. Moving the focus means that I'm now picking up
the correct value from my text field.

That's pretty much all my niggles sorted... thanks everyone.

Nick

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to