Gaetan de Menten schrieb:
> When saving a form, I need to make sure my local datastore is updated
> with the on-screen value of the fields of the form. This happens
> automatically when the user saves the form through the "save" button
> on the toolbar, since the current field loose focus. But if the
> current fields doesn't loose focus (if the user saves through the
> Ctrl-S keyboard shortcut), I have to do it manually.
>
> In 0.7, I used to do:
>     var focusRoot = containerWidget.getFocusRoot();
>     if (focusRoot) {
>         var child = focusRoot.getFocusedChild();
>         if (child) {
>             child.blur();
>             child.focus();
>         }
>     }
>
> I couldn't find a way to get to the currently focused widget in 0.8.
> Anyone knows the way to do it?
>
>   
These method is missing in 0.8. I just added them to trunk. If you have 
trunk you can use

qx.ui.core.FocusHandler.getInstance().getFocusedWidget();

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, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to