Package org.w3c.dom.events

Kotlin JavaScript wrappers for the DOM events API.

Types

JS
1.1

CompositionEvent

Exposes the JavaScript CompositionEvent to Kotlin

open class CompositionEvent : UIEvent
JS
1.1

CompositionEventInit

interface CompositionEventInit : UIEventInit
JS
1.1

Event

Exposes the JavaScript Event to Kotlin

open class Event
JS
1.1

EventListener

Exposes the JavaScript EventListener to Kotlin

interface EventListener
JS
1.1

EventModifierInit

interface EventModifierInit : UIEventInit
JS
1.1

EventTarget

Exposes the JavaScript EventTarget to Kotlin

abstract class EventTarget
JS
1.1

FocusEvent

Exposes the JavaScript FocusEvent to Kotlin

open class FocusEvent : UIEvent
JS
1.1

FocusEventInit

interface FocusEventInit : UIEventInit
JS
1.1

InputEvent

Exposes the JavaScript InputEvent to Kotlin

open class InputEvent : UIEvent
JS
1.1

InputEventInit

interface InputEventInit : UIEventInit
JS
1.1

KeyboardEvent

Exposes the JavaScript KeyboardEvent to Kotlin

open class KeyboardEvent : UIEvent
JS
1.1

KeyboardEventInit

interface KeyboardEventInit : EventModifierInit
JS
1.1

MouseEvent

Exposes the JavaScript MouseEvent to Kotlin

open class MouseEvent : UIEvent, UnionElementOrMouseEvent
JS
1.1

MouseEventInit

interface MouseEventInit : EventModifierInit
JS
1.1

UIEvent

Exposes the JavaScript UIEvent to Kotlin

open class UIEvent : Event
JS
1.1

UIEventInit

interface UIEventInit : EventInit
JS
1.1

WheelEvent

Exposes the JavaScript WheelEvent to Kotlin

open class WheelEvent : MouseEvent
JS
1.1

WheelEventInit

interface WheelEventInit : MouseEventInit

Functions

JS
1.1

CompositionEventInit

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

EventListener

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

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
JS
1.1

FocusEventInit

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

InputEventInit

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

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
JS
1.1

MouseEventInit

fun MouseEventInit(
    screenX: Int? = 0,
    screenY: Int? = 0,
    clientX: Int? = 0,
    clientY: Int? = 0,
    button: Short? = 0,
    buttons: Short? = 0,
    relatedTarget: EventTarget? = null,
    region: String? = 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
JS
1.1

UIEventInit

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

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,
    region: String? = 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