There's no explicit ways to do that.
You may have to retrieve it directly from the suggestion list, e.g.:
CmdUtils.CreateCommand({
names: ["foo", "bar"],
preview: function preview(pb) {
pb.textContent = (
context.chromeWindow.document.getElementById("ubiquity-suggest")
.contentDocument.querySelector(".hilited .verb").textContent);
},
});
On Wed, Oct 7, 2009 at 12:37 PM, jeff kowalski <[email protected]> wrote:
>
> Supposing I have
> names: ["foo", "bar"]
> how can I determine whether the user invoked my command via "foo" or
> "bar"?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---