KeyboardEvent

sealed interface KeyboardEvent(source)

Immutable typed keyboard event delivered to the currently focused retained component.

Inheritors

Types

Link copied to clipboard
data class Press(val key: KeyCode, val scanCode: Int, val modifiers: KeyboardModifiers = KeyboardModifiers()) : KeyboardEvent

Key press or repeat delivery.

Link copied to clipboard
data class Release(val key: KeyCode, val scanCode: Int, val modifiers: KeyboardModifiers = KeyboardModifiers()) : KeyboardEvent

Key release delivery.

Properties

Link copied to clipboard
abstract val key: KeyCode

Physical key identity.

Link copied to clipboard

Modifier state captured with the event.

Link copied to clipboard
abstract val scanCode: Int

Platform scan code preserved for layout-specific consumers.