Method InitKeyboardEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Dom.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.
public void InitKeyboardEvent(string eventType, bool bubbles, bool cancelable, IAbstractView view, string keyIdentifier, KeyLocationCode keyLocation, bool ctrlKey, bool shiftKey, bool altKey, bool metaKey, bool altGraphKey)
Parameters
eventType
stringbubbles
boolcancelable
boolview
IAbstractViewkeyIdentifier
stringkeyLocation
KeyLocationCodectrlKey
boolshiftKey
boolaltKey
boolmetaKey
boolaltGraphKey
bool
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.