struct KeyEvent
source · line 138public
public struct KeyEvent(val code: KeyCode, val modifiers: KeyModifiers = KeyModifiers(), val kind: KeyEventKind = KeyEventKind.Press, val state: KeyEventState = KeyEventState())
A logical key together with modifiers, press/repeat/release kind, and lock/keypad state.
field modifiers
source · line 140public
val modifiers: KeyModifiers = KeyModifiers()
field code
source · line 139public
val code: KeyCode
field state
source · line 142public
val state: KeyEventState = KeyEventState()
field kind
source · line 141public
val kind: KeyEventKind = KeyEventKind.Press
constructor constructor
source · line 138public
constructor(val code: KeyCode, val modifiers: KeyModifiers = KeyModifiers(), val kind: KeyEventKind = KeyEventKind.Press, val state: KeyEventState = KeyEventState())
parameter state
source · line 142public
val state: KeyEventState = KeyEventState()
parameter code
source · line 139public
val code: KeyCode
parameter modifiers
source · line 140public
val modifiers: KeyModifiers = KeyModifiers()
parameter kind
source · line 141public
val kind: KeyEventKind = KeyEventKind.Press
function equals
source · line 138publiccompiler-derived
operator fun equals(other: KeyEvent): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: KeyCode, KeyModifiers, KeyEventKind, KeyEventState.