KeyboardEvent

Overview

KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.

Location

 

altKey

 

property altKey: Boolean read;

 

Boolean altKey { get; }

 

var altKey: Boolean { get{} }

 

Boolean altKey { __get; }

 

ReadOnly Property altKey() As Boolean

code

 

property code: String read;

 

String code { get; }

 

var code: String { get{} }

 

String code { __get; }

 

ReadOnly Property code() As String

ctrlKey

 

property ctrlKey: Boolean read;

 

Boolean ctrlKey { get; }

 

var ctrlKey: Boolean { get{} }

 

Boolean ctrlKey { __get; }

 

ReadOnly Property ctrlKey() As Boolean

getModifierState

Returns a Boolean indicating if a modifier key such as Alt, Shift, Ctrl, or Meta, was pressed when the event was created.

 

method getModifierState(parkeyArg: dynamic): Boolean

 

Boolean getModifierState(dynamic parkeyArg)

 

func getModifierState(_ parkeyArg: dynamic) -> Boolean

 

Boolean getModifierState(dynamic parkeyArg)

 

Function getModifierState(parkeyArg As dynamic) As Boolean

Parameters:

  • parkeyArg:

isComposing

 

property isComposing: Boolean read;

 

Boolean isComposing { get; }

 

var isComposing: Boolean { get{} }

 

Boolean isComposing { __get; }

 

ReadOnly Property isComposing() As Boolean

key

 

property key: String read;

 

String key { get; }

 

var key: String { get{} }

 

String key { __get; }

 

ReadOnly Property key() As String

locale

 

property locale: String read;

 

String locale { get; }

 

var locale: String { get{} }

 

String locale { __get; }

 

ReadOnly Property locale() As String

location

 

property location: dynamic read;

 

dynamic location { get; }

 

var location: dynamic { get{} }

 

dynamic location { __get; }

 

ReadOnly Property location() As dynamic

metaKey

 

property metaKey: Boolean read;

 

Boolean metaKey { get; }

 

var metaKey: Boolean { get{} }

 

Boolean metaKey { __get; }

 

ReadOnly Property metaKey() As Boolean

repeat

 

property repeat: Boolean read;

 

Boolean repeat { get; }

 

var repeat: Boolean { get{} }

 

Boolean repeat { __get; }

 

ReadOnly Property repeat() As Boolean

shiftKey

 

property shiftKey: Boolean read;

 

Boolean shiftKey { get; }

 

var shiftKey: Boolean { get{} }

 

Boolean shiftKey { __get; }

 

ReadOnly Property shiftKey() As Boolean

 

altKey

 

property altKey: Boolean read;

 

Boolean altKey { get; }

 

var altKey: Boolean { get{} }

 

Boolean altKey { __get; }

 

ReadOnly Property altKey() As Boolean

code

 

property code: String read;

 

String code { get; }

 

var code: String { get{} }

 

String code { __get; }

 

ReadOnly Property code() As String

ctrlKey

 

property ctrlKey: Boolean read;

 

Boolean ctrlKey { get; }

 

var ctrlKey: Boolean { get{} }

 

Boolean ctrlKey { __get; }

 

ReadOnly Property ctrlKey() As Boolean

isComposing

 

property isComposing: Boolean read;

 

Boolean isComposing { get; }

 

var isComposing: Boolean { get{} }

 

Boolean isComposing { __get; }

 

ReadOnly Property isComposing() As Boolean

key

 

property key: String read;

 

String key { get; }

 

var key: String { get{} }

 

String key { __get; }

 

ReadOnly Property key() As String

locale

 

property locale: String read;

 

String locale { get; }

 

var locale: String { get{} }

 

String locale { __get; }

 

ReadOnly Property locale() As String

location

 

property location: dynamic read;

 

dynamic location { get; }

 

var location: dynamic { get{} }

 

dynamic location { __get; }

 

ReadOnly Property location() As dynamic

metaKey

 

property metaKey: Boolean read;

 

Boolean metaKey { get; }

 

var metaKey: Boolean { get{} }

 

Boolean metaKey { __get; }

 

ReadOnly Property metaKey() As Boolean

repeat

 

property repeat: Boolean read;

 

Boolean repeat { get; }

 

var repeat: Boolean { get{} }

 

Boolean repeat { __get; }

 

ReadOnly Property repeat() As Boolean

shiftKey

 

property shiftKey: Boolean read;

 

Boolean shiftKey { get; }

 

var shiftKey: Boolean { get{} }

 

Boolean shiftKey { __get; }

 

ReadOnly Property shiftKey() As Boolean

 

getModifierState

Returns a Boolean indicating if a modifier key such as Alt, Shift, Ctrl, or Meta, was pressed when the event was created.

 

method getModifierState(parkeyArg: dynamic): Boolean

 

Boolean getModifierState(dynamic parkeyArg)

 

func getModifierState(_ parkeyArg: dynamic) -> Boolean

 

Boolean getModifierState(dynamic parkeyArg)

 

Function getModifierState(parkeyArg As dynamic) As Boolean

Parameters:

  • parkeyArg: