Scoop API

scoop:scoop.terminal:0.1.0

KeyEvent

struct KeyEvent

source · line 138
public
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.

constructor constructor

source · line 138
public
constructor(val code: KeyCode, val modifiers: KeyModifiers = KeyModifiers(), val kind: KeyEventKind = KeyEventKind.Press, val state: KeyEventState = KeyEventState())