Hi,

On Monday 19 October 2009 skar wrote:
> I've got a window with several text fields and buttons. How do I know 
> which text field or button has the keyboard focus now?
qooxdoo offers a FocusHandler for all widgets. You can ask this FocusHandler 
for the currently active and focused widget.

--snip--
var activeWidget = qx.ui.core.FocusHandler.getInstance().getActiveWidget();
var focuseWidget = qx.ui.core.FocusHandler.getInstance().getFocusedWidget();
--snip--

See http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.FocusHandler for 
more details.

cheers,
  Alex

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to