Hi Hugh, > Is there any official response to this? What is happening with focus in > 0.8? The focus management in the upcoming 0.8 release should allow the scenario you described: the table widget has the focus while the contextmenu is the active widget which receives the events. However, there are no menu widgets in 0.8 yet and the desired behaviour for the table is also not yet implemented.
Could you please file a bug report for this issue to keep track of it? cheers, Alex > >> *Subject:* Re: [qooxdoo-devel] Context Menu key has no action under >> Windows >> *From:* "Hugh Gibson" <[EMAIL PROTECTED]> >> *To:* qooxdoo-devel@lists.sourceforge.net >> *Date:* Wed, 7 May 2008 17:06 +0100 (BST) >> >>>> You might try something like this to force focus where you want >>>> it to be: >>>> >>>> contextmenu.addEventListener("appear", function() { >>>> table.setFocus(); }, this); >>> The trouble with that is that when the menu appears, the up and >>> down >>> arrow will work in the table rather than in the menu. >>> >>> I can remember the element that initiated the action and set focus >>> explicitly back to that after the menu has disappeared. >> I've tried this by putting this in _beforeAppear for the context >> menu >> class: >> >> var oFocusRoot = >> qx.event.handler.EventHandler.getInstance().getFocusRoot(); >> var oTarget = oFocusRoot == null ? null : >> oFocusRoot.getActiveChild(); >> this._m_oOldTarget = oTarget; >> >> and then this in _afterDisappear: >> >> if (this._m_oOldTarget && this._m_bIsContextMenu) >> { >> this._m_oOldTarget.setFocused(true); >> } >> >> However, it's not ideal. The main control we have is a table. >> Before the context menu is shown the keyboard focus is on the >> qx.ui.table.Table class. The target found by the getActiveChild() >> call is an instance of qx.ui.table.pane.Pane. Consequently the >> highlight colour for focus isn't displayed correctly, but the >> keyboard does work correctly on the table (e.g. pressing up selects >> the next line up). >> >> Is this area being worked on in 0.8? >> >> Hugh > > ------------------------------------------------------------------------- > 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 -- Alexander Back Core Development::Webtechnologies [EMAIL PROTECTED] fon +49 721 91374 8047 http://www.1und1.de 1&1 Internet AG Ernst-Frey-Straße 9 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- 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