KeyboardEvent

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

Exposes the JavaScript KeyboardEvent to Kotlin

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Properties

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