WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMXULCommandEvent

IID:f9fa8205-a988-4828-9228-f3332d5475ac
Inherits From:nsIDOMUIEvent

Properties

readonly PRBool altKey

readonly PRBool ctrlKey

Command events support the same set of modifier keys as mouse and key events.

readonly PRBool metaKey

readonly PRBool shiftKey

readonly nsIDOMEvent sourceEvent

If the command event was redispatched because of a command= attribute on the original target, sourceEvent will be set to the original DOM Event. Otherwise, sourceEvent is null.


Methods

void initCommandEvent ( DOMString typeArg , PRBool canBubbleArg , PRBool cancelableArg , nsIDOMAbstractView viewArg , PRInt32 detailArg , PRBool ctrlKeyArg , PRBool altKeyArg , PRBool shiftKeyArg , PRBool metkeyArg , nsIDOMEvent sourceEvent )

void initCommandEvent ( DOMString typeArg , PRBool canBubbleArg , PRBool cancelableArg , nsIDOMAbstractView viewArg , PRInt32 detailArg , PRBool ctrlKeyArg , PRBool altKeyArg , PRBool shiftKeyArg , PRBool metkeyArg , nsIDOMEvent sourceEvent )

Creates a new command event with the given attributes.

Arguments:
typeArg
canBubbleArg
cancelableArg
viewArg
detailArg
ctrlKeyArg
altKeyArg
shiftKeyArg
metkeyArg
sourceEvent

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com