Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / TERMINAL ALIASES FROM WEFT
KeyEventKind
The phase reported by an extended keyboard protocol. Legacy key events are normalized as .press.
loom.KeyEventKind is an alias for weft.KeyEventKind. It is available through import loom. The underlying type’s members are documented here.
Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.
Example
let phase: KeyEventKind = .press
_ = KeyEvent(key: .newline, kind: phase)Members on this page
Feature guides and release status
KeyEventKind
typealias KeyEventKind = weft.weft.KeyEventKindThe phase reported by an extended keyboard protocol. Legacy key events are normalized as .press.
Source · TerminalExports.swift:15Underlying weft API
KeyEventKind
enum KeyEventKindConforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.
Whether the key was pressed, repeated, or released.
Source · KeyEvent.swift:20press
case pressThe press case. Associated values, if any, are shown in the declaration.
Source · KeyEvent.swift:21repeated
case repeatedThe repeated case. Associated values, if any, are shown in the declaration.
Source · KeyEvent.swift:22release
case releaseThe release case. Associated values, if any, are shown in the declaration.
Source · KeyEvent.swift:23