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).

I could do it by creating a global command and inside the callback check if
the focus is on the second field. But this is not very nice (and on more
complex cases, could be ugly quite soon). it also forces me to be careful
about disabling the listener on Enter once the form is submitted.

It would be better if there was a Qx way to listen to the enter key only on
certain widgets (here, the password field). Is there a way to achieve that?

Thanks

-- 
Jean-Noël Rivasseau
------------------------------------------------------------------------------
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