Package org.w3c.dom.events
Kotlin JavaScript wrappers for the DOM events API.
Types
CompositionEvent
Exposes the JavaScript CompositionEvent to Kotlin
open class CompositionEvent : UIEvent
CompositionEventInit
interface CompositionEventInit : UIEventInit
EventListener
Exposes the JavaScript EventListener to Kotlin
interface EventListener
EventModifierInit
interface EventModifierInit : UIEventInit
EventTarget
Exposes the JavaScript EventTarget to Kotlin
abstract class EventTarget
FocusEvent
Exposes the JavaScript FocusEvent to Kotlin
open class FocusEvent : UIEvent
FocusEventInit
interface FocusEventInit : UIEventInit
InputEvent
Exposes the JavaScript InputEvent to Kotlin
open class InputEvent : UIEvent
InputEventInit
interface InputEventInit : UIEventInit
KeyboardEvent
Exposes the JavaScript KeyboardEvent to Kotlin
open class KeyboardEvent : UIEvent
KeyboardEventInit
interface KeyboardEventInit : EventModifierInit
MouseEvent
Exposes the JavaScript MouseEvent to Kotlin
open class MouseEvent : UIEvent, UnionElementOrMouseEvent
MouseEventInit
interface MouseEventInit : EventModifierInit
UIEventInit
interface UIEventInit : EventInit
WheelEvent
Exposes the JavaScript WheelEvent to Kotlin
open class WheelEvent : MouseEvent
WheelEventInit
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(
: 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,
: 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
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,
: 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