KeyboardEvent

open external class KeyboardEvent(type: String, eventInitDict: KeyboardEventInit) : UIEvent

Exposes the JavaScript KeyboardEvent to Kotlin

Constructors

KeyboardEvent
Link copied to clipboard
JS
fun KeyboardEvent(type: String, eventInitDict: KeyboardEventInit = definedExternally)

Types

Companion
Link copied to clipboard
JS
object Companion

Functions

composedPath
Link copied to clipboard
JS
fun composedPath(): Array<EventTarget>
getModifierState
Link copied to clipboard
JS
fun getModifierState(keyArg: String): Boolean
initEvent
Link copied to clipboard
JS
fun initEvent(type: String, bubbles: Boolean, cancelable: Boolean)
preventDefault
Link copied to clipboard
JS
fun preventDefault()
stopImmediatePropagation
Link copied to clipboard
JS
fun stopImmediatePropagation()
stopPropagation
Link copied to clipboard
JS
fun stopPropagation()

Properties

altKey
Link copied to clipboard
JS
open val altKey: Boolean
bubbles
Link copied to clipboard
JS
open val bubbles: Boolean
cancelable
Link copied to clipboard
JS
open val cancelable: Boolean
charCode
Link copied to clipboard
JS
open val charCode: Int
code
Link copied to clipboard
JS
open val code: String
composed
Link copied to clipboard
JS
open val composed: Boolean
ctrlKey
Link copied to clipboard
JS
open val ctrlKey: Boolean
currentTarget
Link copied to clipboard
JS
open val currentTarget: EventTarget?
defaultPrevented
Link copied to clipboard
JS
open val defaultPrevented: Boolean
detail
Link copied to clipboard
JS
open val detail: Int
eventPhase
Link copied to clipboard
JS
open val eventPhase: Short
isComposing
Link copied to clipboard
JS
open val isComposing: Boolean
isTrusted
Link copied to clipboard
JS
open val isTrusted: Boolean
key
Link copied to clipboard
JS
open val key: String
keyCode
Link copied to clipboard
JS
open val keyCode: Int
location
Link copied to clipboard
JS
open val location: Int
metaKey
Link copied to clipboard
JS
open val metaKey: Boolean
repeat
Link copied to clipboard
JS
open val repeat: Boolean
shiftKey
Link copied to clipboard
JS
open val shiftKey: Boolean
target
Link copied to clipboard
JS
open val target: EventTarget?
timeStamp
Link copied to clipboard
JS
open val timeStamp: Number
type
Link copied to clipboard
JS
open val type: String
view
Link copied to clipboard
JS
open val view: Window?
which
Link copied to clipboard
JS
open val which: Int