Context-menu submenu does not show when text is selected or when on an image

I’ve created a submenu like this:
rootMenu = cm.Menu({ label: _("menuNone"), image: self.data.url('dictcc.png'), items: children });
When text is selected or I try to open the context menu on an image, the submenu will not show. A normal cm.Item will show. Any idea why?

does anyone even know if this is expected behavior?

Nevermind, seems I misunderstood PageContext. It only works when nothing is selected and no interactive element is focused.
Need to create a dummy context which returns true:

    var context = cm.PredicateContext(function () {
        return true;
    });
1 Like

Not too many SDK’ers around here it seems :frowning:

If you don’t get help here you can also try here:

http://stackoverflow.com/questions/tagged/firefox-addon-sdk

That tag has some frequent members.

1 Like