KeyboardEventInit Class

https://w3c.github.io/uievents/#dictdef-keyboardeventinit

public sealed class KeyboardEventInit : EventModifierInit
Inheritance
EventModifierInit KeyboardEventInit

Constructors

NameDescription
KeyboardEventInit()

KeyboardEventInit()

UIEvents.cs
public KeyboardEventInit()

No documentation is available.

Properties

NameDescription
CharCodeGets the legacy Unicode code of the character key.
CodeGets the physical key code, such as KeyA or Enter.
IsComposingGets a value indicating whether the event is part of a composition session.
KeyGets the value of the key, such as a or Enter.
KeyCodeGets the legacy code of the key.
LocationGets the location of the key on the device (standard, left, right or numpad).
RepeatGets a value indicating whether the key is held down so that the event is auto-repeated.

CharCode

UIEvents.cs

Gets the legacy Unicode code of the character key.

public uint CharCode { get; init; }

Gets the physical key code, such as KeyA or Enter.

public string Code { get; init; }

IsComposing

UIEvents.cs

Gets a value indicating whether the event is part of a composition session.

public bool IsComposing { get; init; }

Gets the value of the key, such as a or Enter.

public string Key { get; init; }

Gets the legacy code of the key.

public uint KeyCode { get; init; }

Location

UIEvents.cs

Gets the location of the key on the device (standard, left, right or numpad).

public uint Location { get; init; }

Gets a value indicating whether the key is held down so that the event is auto-repeated.

public bool Repeat { get; init; }