Comment 30 for bug 602877

Revision history for this message
In , Enn (enndeakin) wrote :

(In reply to comment #29)
> > Example:
> > <div tabindex="-1">I can be focused if you click on me</div>
> >
> > Alexander, is this what you mean?
>
> If it's not in tab order then yes. Or it could be XUL toolbarbutton I guess.

So what is your question? David's example is an element that can be focused but is skipped when pressing Tab to modify the focus. It can be focused via element.focus() or if mouse-clicking on it would do so on the platform.

Is your problem that accessibility wants to use tab navigation? No accessibility code is doing so currently that I can see. It would be calling nsIFocusManager::MoveFocus with the forward/backward type if it was.

I do however see code using nsIFocusManager::SetFocus which will focus an element normally.