layout: default title: KeyDownEvent parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Events

KeyDownEvent Class

Fires after a keyboard key is pressed.

public class KeyDownEvent : dymaptic.GeoBlazor.Core.Events.JsEvent,
System.IEquatable<dymaptic.GeoBlazor.Core.Events.KeyDownEvent>

Inheritance System.Object 🡒 JsEvent 🡒 KeyDownEvent

Implements System.IEquatable<KeyDownEvent>

Constructors

KeyDownEvent(string, Nullable, Nullable, bool, string, double, DomPointerEvent, Nullable) Constructor

Fires after a keyboard key is pressed.

public KeyDownEvent(string Type, System.Nullable<int> EventId, System.Nullable<bool> Cancelable, bool Repeat, string Key, double Timestamp, dymaptic.GeoBlazor.Core.Events.DomPointerEvent Native, System.Nullable<dymaptic.GeoBlazor.Core.Events.PointerType> PointerType);

Parameters

Type System.String

The event type.

EventId System.Nullable<System.Int32>

The unique Id of the event.

Cancelable System.Nullable<System.Boolean>

Whether the event can be cancelled once begun.

Repeat System.Boolean

Indicates whether this is the first event emitted due to the key press, or a repeat.

Key System.String

The key value that was pressed, according to the

.htmlN
full list of key values

.

Timestamp System.Double

Time stamp (in milliseconds) at which the event was emitted.

Native DomPointerEvent

A standard DOM Pointer Event

PointerType System.Nullable<PointerType>

Indicates the pointer type.

Properties

KeyDownEvent.Key Property

The key value that was pressed, according to the

.htmlN
full list of key values

.

public string Key { get; set; }

Property Value

System.String

KeyDownEvent.Repeat Property

Indicates whether this is the first event emitted due to the key press, or a repeat.

public bool Repeat { get; set; }

Property Value

System.Boolean