nsISupports
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)To get access to the box object for a given menu, use code like this:
var boxObject = xulMenu.boxObject.QueryInterface(Components.interfaces.nsIMenuBoxObject);
boolean handleKeyPress(in nsIDOMKeyEvent keyEvent); |
void openMenu(in boolean openFlag); |
Attribute | Type | Description |
activeChild |
|
The currently active menu or menuitem child of the menu box. |
openedWithKey |
boolean |
true if the menubar was opened using the keyboard; otherwise false . |
openedWithKey
attribute exists on the nsIMenuBoxObject_MOZILLA_2_0_BRANCH
interface. Subsequent Gecko versions will have the attribute on the nsIMenuBoxObject
interface.boolean handleKeyPress( in nsIDOMKeyEvent keyEvent );
keyEvent
true
if the event was handled, false
if not.
void openMenu( in boolean openFlag );
openFlag
true
to open the menu or false
to close it.