Method InitKeyboardEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
InitKeyboardEvent(string, bool, bool, IAbstractView, string, KeyLocationCode, bool, bool, bool, bool, bool)
The InitKeyboardEvent method is used to initialize the value of a IKeyboardEvent created using the IDocumentEvent.CreateEvent method.
void InitKeyboardEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IAbstractView viewArg, string keyIdentifierArg, KeyLocationCode keyLocationArg, bool ctrlKeyArg, bool shiftKeyArg, bool altKeyArg, bool metaKeyArg, bool altGraphKeyArg)
Parameters
typeArg
stringSpecifies the event type.
canBubbleArg
boolSpecifies whether or not the event can bubble. This parameter overrides the intrinsic bubbling behavior of the event.
cancelableArg
boolSpecifies whether or not the event's default action can be prevent. This parameter overrides the intrinsic cancelable behavior of the event.
viewArg
IAbstractViewSpecifies the IKeyboardEvent's IAbstractView.
keyIdentifierArg
stringSpecifies the IKeyboardEvent's KeyIdentifier attribute.
keyLocationArg
KeyLocationCodeSpecifies the IKeyboardEvent's KeyLocation attribute.
ctrlKeyArg
boolSpecifies the IKeyboardEvent's CtrlKey attribute.
shiftKeyArg
boolSpecifies the IKeyboardEvent's ShiftKey attribute.
altKeyArg
boolSpecifies the IKeyboardEvent's AltKey attribute.
metaKeyArg
boolSpecifies the IKeyboardEvent's MetaKey attribute.
altGraphKeyArg
boolSpecifies the IKeyboardEvent's AltGraphKey attribute.
Remarks
This method may only be called before the IKeyboardEvent has been dispatched via the IEventTarget.DispatchEvent method, though it may be called multiple times before being dispatched if necessary. If called multiple times, the final invocation takes precedence. This method has no effect if called after the event has been dispatched.