Interface IKeyboardEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
The IKeyboardEvent interface provides specific contextual information associated with keyboard devices.
public interface IKeyboardEvent : IUiEvent, IEvent
- Inherited Members
Remarks
Each keyboard event reference a key using an identifier.
Each modifier attribute (CtrlKey, ShiftKey, AltKey, MetaKey, and AltGraphKey) is activated when the key modifier is being pressed down or maintained pressed, i.e. the modifier attribute is not in use when the key modifier is being released.
Note: To create an instance of the
IKeyboardEvent interface, use the
feature string "KeyboardEvent"
as the value of the input
parameter used with the
IDocumentEvent.CreateEvent
method.
Properties
- AltGraphKey
true if the alt-graph (Alt Gr) key modifier is activated.
- AltKey
true
if the alt (alternative) key modifier is activated.
- CtrlKey
true
if the control (Ctrl) key modifier is activated.
- KeyIdentifier
Holds the identifier of the key.
- KeyLocation
Contains an indication of the location of they key on the device.
- MetaKey
true
if the meta (Meta) key modifier is activated.
- ShiftKey
true
if the shift (Shift) key modifier is activated.
Methods
- 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.
- InitKeyboardEventNs(string, string, bool, bool, IAbstractView, string, KeyLocationCode, bool, bool, bool, bool, bool)
The InitKeyboardEventNs method is used to initialize the value of a IKeyboardEvent created using the IDocumentEvent.CreateEvent method.