Gaetan de Menten schrieb:
> Hi people,
>
> Does anybody know if there is an easy way to implement a default
> widget with Qooxdoo. I mean a widget (usually a button) which catch
> "enter" events in other fields.
> This is meant to speed up some forms, for example login forms: you
> enter your login, password and then immediately press enter (without
> first focusing the "sign in" button first), and this actually
> activates said button. I know such a mechanism exist in GTK/Glade (and
> probably other GUI toolkits too).
>
> Is there a mechanism I could use in Qooxdoo to do this easily or do I
> have to manually configure event listeners on each of my fields?
>
> I tried using setCapture(true) on the button but that doesn't seem to
> do what I want.
>
> Thanks in advance,
>   
We don't have the concept of a default widget (yet). The "capture" 
property is used to capture all mouse events and is unrelated to key 
events. Your approach with the key event listener on the 
container/window is fine.

Best Fabian

-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to