I have pop-up dialog boxes, with a qx.ui.core.Command("Enter") applies to
the Ok button. I've found, however, that those Ok buttons' execute handler
is being called whenever Enter is pressed, even when the dialog is not
shown.

I've handled this by disabling the Ok button when the window is hidden
(which, by itself is not adequate, since the execute handler is still called
when Enter is pressed... seems like a bug), and also exiting the execute
handler immediately if the button is disabled.

This works, but seems unnecessary. Is there a cleaner way of restricting a
Command to apply only when a particular widget is active?

Derrell
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to