Is there any official response to this? What is happening with focus in
0.8? 

Hugh

> *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

Reply via email to