Package org.w3c.dom.events

Platform and version requirements: JS

Kotlin JavaScript wrappers for the DOM events API.

Types

CompositionEvent

open external class CompositionEvent : UIEvent

Exposes the JavaScript CompositionEvent to Kotlin

CompositionEventInit

external interface CompositionEventInit : UIEventInit

Event

open external class Event

Exposes the JavaScript Event to Kotlin

EventListener

external interface EventListener

Exposes the JavaScript EventListener to Kotlin

EventModifierInit

external interface EventModifierInit : UIEventInit

EventTarget

abstract external class EventTarget

Exposes the JavaScript EventTarget to Kotlin

FocusEvent

open external class FocusEvent : UIEvent

Exposes the JavaScript FocusEvent to Kotlin

FocusEventInit

external interface FocusEventInit : UIEventInit

InputEvent

open external class InputEvent : UIEvent

Exposes the JavaScript InputEvent to Kotlin

InputEventInit

external interface InputEventInit : UIEventInit

KeyboardEvent

open external class KeyboardEvent : UIEvent

Exposes the JavaScript KeyboardEvent to Kotlin

KeyboardEventInit

external interface KeyboardEventInit : EventModifierInit

MouseEvent

open external class MouseEvent : 
    UIEvent,
    UnionElementOrMouseEvent

Exposes the JavaScript MouseEvent to Kotlin

MouseEventInit

external interface MouseEventInit : EventModifierInit

UIEvent

open external class UIEvent : Event

Exposes the JavaScript UIEvent to Kotlin

UIEventInit

external interface UIEventInit : EventInit

WheelEvent

open external class WheelEvent : MouseEvent

Exposes the JavaScript WheelEvent to Kotlin

WheelEventInit

external interface WheelEventInit : MouseEventInit

Functions

CompositionEventInit

fun CompositionEventInit(
    data: String? = "",
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): CompositionEventInit

EventListener

fun EventListener(handler: (Event) -> Unit): EventListener

EventModifierInit

fun EventModifierInit(
    ctrlKey: Boolean? = false,
    shiftKey: Boolean? = false,
    altKey: Boolean? = false,
    metaKey: Boolean? = false,
    modifierAltGraph: Boolean? = false,
    modifierCapsLock: Boolean? = false,
    modifierFn: Boolean? = false,
    modifierFnLock: Boolean? = false,
    modifierHyper: Boolean? = false,
    modifierNumLock: Boolean? = false,
    modifierScrollLock: Boolean? = false,
    modifierSuper: Boolean? = false,
    modifierSymbol: Boolean? = false,
    modifierSymbolLock: Boolean? = false,
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): EventModifierInit

FocusEventInit

fun FocusEventInit(
    relatedTarget: EventTarget? = null,
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): FocusEventInit

InputEventInit

fun InputEventInit(
    data: String? = "",
    isComposing: Boolean? = false,
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): InputEventInit

KeyboardEventInit

fun KeyboardEventInit(
    key: String? = "",
    code: String? = "",
    location: Int? = 0,
    repeat: Boolean? = false,
    isComposing: Boolean? = false,
    ctrlKey: Boolean? = false,
    shiftKey: Boolean? = false,
    altKey: Boolean? = false,
    metaKey: Boolean? = false,
    modifierAltGraph: Boolean? = false,
    modifierCapsLock: Boolean? = false,
    modifierFn: Boolean? = false,
    modifierFnLock: Boolean? = false,
    modifierHyper: Boolean? = false,
    modifierNumLock: Boolean? = false,
    modifierScrollLock: Boolean? = false,
    modifierSuper: Boolean? = false,
    modifierSymbol: Boolean? = false,
    modifierSymbolLock: Boolean? = false,
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): KeyboardEventInit

MouseEventInit

fun MouseEventInit(
    screenX: Int? = 0,
    screenY: Int? = 0,
    clientX: Int? = 0,
    clientY: Int? = 0,
    button: Short? = 0,
    buttons: Short? = 0,
    relatedTarget: EventTarget? = null,
    ctrlKey: Boolean? = false,
    shiftKey: Boolean? = false,
    altKey: Boolean? = false,
    metaKey: Boolean? = false,
    modifierAltGraph: Boolean? = false,
    modifierCapsLock: Boolean? = false,
    modifierFn: Boolean? = false,
    modifierFnLock: Boolean? = false,
    modifierHyper: Boolean? = false,
    modifierNumLock: Boolean? = false,
    modifierScrollLock: Boolean? = false,
    modifierSuper: Boolean? = false,
    modifierSymbol: Boolean? = false,
    modifierSymbolLock: Boolean? = false,
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): MouseEventInit

UIEventInit

fun UIEventInit(
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): UIEventInit

WheelEventInit

fun WheelEventInit(
    deltaX: Double? = 0.0,
    deltaY: Double? = 0.0,
    deltaZ: Double? = 0.0,
    deltaMode: Int? = 0,
    screenX: Int? = 0,
    screenY: Int? = 0,
    clientX: Int? = 0,
    clientY: Int? = 0,
    button: Short? = 0,
    buttons: Short? = 0,
    relatedTarget: EventTarget? = null,
    ctrlKey: Boolean? = false,
    shiftKey: Boolean? = false,
    altKey: Boolean? = false,
    metaKey: Boolean? = false,
    modifierAltGraph: Boolean? = false,
    modifierCapsLock: Boolean? = false,
    modifierFn: Boolean? = false,
    modifierFnLock: Boolean? = false,
    modifierHyper: Boolean? = false,
    modifierNumLock: Boolean? = false,
    modifierScrollLock: Boolean? = false,
    modifierSuper: Boolean? = false,
    modifierSymbol: Boolean? = false,
    modifierSymbolLock: Boolean? = false,
    view: Window? = null,
    detail: Int? = 0,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): WheelEventInit