Comment 56 for bug 597825

Revision history for this message
In , Ehsan-mozilla (ehsan-mozilla) wrote :

(In reply to comment #55)
> (In reply to comment #53)
> > OK, it seems like the access key for XUL labels and check boxes is drawn using
> > an HTML span with class named accesskey, and all of this is done in text.xul:
> > <http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/text.xml#87>.
> > This is a problem since XUL content does not have access to the nsIWidget
> > interface.
>
> You could get the widget from the nsXULLabelFrame.

Hmmm, I have no idea how to do that from the XBL code... And anyway, nsIWidget is not XPCOM accessible, so it probably won't be enough to get the widget in XBL.

> > I also attempted to fix the menu and Alt key behavior, but it seems
> > like the menu bar frame object can't get access to a proper nsIWidget
>
> Which widget are you getting and which one do you need?

I'm not sure how to tell which widget I'm getting, but I need the window widget (nsWindow).