KeyboardEventInit Class
https://w3c.github.io/uievents/#dictdef-keyboardeventinit
public sealed class KeyboardEventInit : EventModifierInit- Inheritance
EventModifierInitKeyboardEventInit
Constructors
| Name | Description |
|---|---|
| KeyboardEventInit() |
KeyboardEventInit()
UIEvents.cspublic KeyboardEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| CharCode | Gets the legacy Unicode code of the character key. |
| Code | Gets the physical key code, such as KeyA or Enter. |
| IsComposing | Gets a value indicating whether the event is part of a composition session. |
| Key | Gets the value of the key, such as a or Enter. |
| KeyCode | Gets the legacy code of the key. |
| Location | Gets the location of the key on the device (standard, left, right or numpad). |
| Repeat | Gets a value indicating whether the key is held down so that the event is auto-repeated. |
CharCode
UIEvents.csGets the legacy Unicode code of the character key.
public uint CharCode { get; init; }Code
UIEvents.csGets the physical key code, such as KeyA or Enter.
public string Code { get; init; }IsComposing
UIEvents.csGets a value indicating whether the event is part of a composition session.
public bool IsComposing { get; init; }Key
UIEvents.csGets the value of the key, such as a or Enter.
public string Key { get; init; }KeyCode
UIEvents.csGets the legacy code of the key.
public uint KeyCode { get; init; }Location
UIEvents.csGets the location of the key on the device (standard, left, right or numpad).
public uint Location { get; init; }Repeat
UIEvents.csGets a value indicating whether the key is held down so that the event is auto-repeated.
public bool Repeat { get; init; }