KeyEvent

data class KeyEvent(val key: Key, val modifiers: Set<KeyModifier> = emptySet()) : Event(source)

Represents a keyboard input event.

Constructors

Link copied to clipboard
constructor(key: Key, modifiers: Set<KeyModifier> = emptySet())

Properties

Link copied to clipboard
val key: Key

The key that was pressed.

Link copied to clipboard

The set of modifiers (Shift, Ctrl, Alt) active during the press.