WindowListener

class WindowListener<E : Event>(events: Flow<E>) : Listener<E>

Handles a Flow of Window Events

Constructors

WindowListener
Link copied to clipboard
js
fun <E : Event> WindowListener(events: Flow<E>)

Functions

composedPath
Link copied to clipboard
js
open fun composedPath(): Flow<Array<EventTarget>>
map
Link copied to clipboard
js
open fun <R> map(transform: suspend (E) -> R): Flow<R>
preventDefault
Link copied to clipboard
js
open override fun preventDefault(): WindowListener<E>
stopImmediatePropagation
Link copied to clipboard
js
open override fun stopImmediatePropagation(): WindowListener<E>
stopPropagation
Link copied to clipboard
js
open override fun stopPropagation(): WindowListener<E>

Properties

events
Link copied to clipboard
js
open override val events: Flow<E>

Extensions

key
Link copied to clipboard
js
fun WindowListener<KeyboardEvent>.key(): Flow<Key>
Gives you the pressed key as Key from a KeyboardEvent.