On Wed, 19 Mar 2008 14:04 +0000 (GMT Standard Time), Hugh Gibson <[EMAIL PROTECTED]> wrote: > > If I right-click on a table or tree widget I get a context menu. How can > I wire this up to the keyboard so that the context menu appears when the > appropriate key is pressed on the keyboard (under Windows there could be > a dedicated key, or shift+F10). > > This would make it possible to test menus via Selenium.
It looks like you should be able to do something like this to simulate it: var event = { target : yourWidget.getElement(), type : "contextmenu" }; qx.event.handler.EventHandler.getInstance()._onmouseevent(event); Derrell ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel