Class
KeyEvent

Class representing a scriptable key event that can be sent to a browser window.

Definition

Namespace:ArtOfTest.WebAii.Javascript

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[DataContract]
public class KeyEvent : ScriptUIEvent

Inheritance: objectScriptEventScriptUIEventKeyEvent

Inherited Members ScriptUIEvent.ModifierKeysScriptEvent.CanBubbleScriptEvent.IsCancelableScriptEvent.Type

Constructors

KeyEvent()

Initializes a new KeyEvent object.

Declaration

cs-api-definition
public KeyEvent()

KeyEvent(string)

Initializes a new KeyEvent object.

Declaration

cs-api-definition
public KeyEvent(string type)

Parameters

type

string

The type of key event.

KeyEvent(string, char)

Initializes a new KeyEvent object.

Declaration

cs-api-definition
public KeyEvent(string type, char key)

Parameters

type

string

The type of key event.

key

char

The keycode for the key event.

Properties

KeyCode

Gets / Sets the character code for this event

Declaration

cs-api-definition
[DataMember(Name = "keyCode")]
public int KeyCode { get; set; }

Property Value

int