On Sun, Jan 17, 2010 at 17:03, Jean-Noël Rivasseau <[email protected]>wrote:

> Hello
>
> I would like to know if the key events are always considered "global" or
> could be somehow attached to widgets. My problem is the following: I have a
> login dialog. I would like the Enter key to submit the login but only if the
> focus is on the second text field (the password field).
>

Instead of creating a Command, create an event listener on that second text
field, listening for the "keypress" event. If it is Enter then submit the
login request.

Derrell
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to