KeyboardEvent

open external class KeyboardEvent : UIEvent (source)

Platform and version requirements: JS

Exposes the JavaScript KeyboardEvent to Kotlin

Constructors

<init>

KeyboardEvent(
    type: String,
    eventInitDict: KeyboardEventInit = definedExternally)

Exposes the JavaScript KeyboardEvent to Kotlin

Properties

altKey

open val altKey: Boolean

charCode

open val charCode: Int

code

open val code: String

ctrlKey

open val ctrlKey: Boolean

isComposing

open val isComposing: Boolean

key

open val key: String

keyCode

open val keyCode: Int

location

open val location: Int

metaKey

open val metaKey: Boolean

repeat

open val repeat: Boolean

shiftKey

open val shiftKey: Boolean

which

open val which: Int

Inherited Properties

detail

open val detail: Int

view

open val view: Window?

Functions

getModifierState

fun getModifierState(keyArg: String): Boolean

Companion Object Properties

DOM_KEY_LOCATION_LEFT

val DOM_KEY_LOCATION_LEFT: Int

DOM_KEY_LOCATION_NUMPAD

val DOM_KEY_LOCATION_NUMPAD: Int

DOM_KEY_LOCATION_RIGHT

val DOM_KEY_LOCATION_RIGHT: Int

DOM_KEY_LOCATION_STANDARD

val DOM_KEY_LOCATION_STANDARD: Int