Hi Jean-Noel,

then I would prefer to use a Command which listen to the ENTER key and a form manager [1] which validates the user input before you submit the request.

Cheers,
Chris

[1] http://qooxdoo.org/documentation/1.0/ui_form_handling

Am 18.01.2010 03:22, schrieb Jean-Noël Rivasseau:
Yes, but it's not very convenient - in other situations I would have maybe ten widgets which should listen to keypress. Widgets like Checkboxes too - can those listen to keypress events?

On Sun, Jan 17, 2010 at 4:58 PM, Derrell Lipman <[email protected] <mailto:[email protected]>> wrote:

    On Sun, Jan 17, 2010 at 17:03, Jean-Noël Rivasseau
    <[email protected] <mailto:[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]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



--
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren

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