Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / COLLECTIONS AND INTERACTION
KeyBinding
One application action, its remappable chords, and its user-facing description.
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.
Members on this page
Feature guides and release status
KeyBinding
struct KeyBinding<Action>Conforms to: Swift.Sendable, Swift.SendableMetatype.
One application action, its remappable chords, and its user-facing description.
Source · KeyMap.swift:80action
var action: ActionA public field of this type. Its value type and mutability are shown in the declaration.
Source · KeyMap.swift:81keys
var keys: [KeyChord]A public field of this type. Its value type and mutability are shown in the declaration.
Source · KeyMap.swift:82help
var help: StringA public field of this type. Its value type and mutability are shown in the declaration.
Source · KeyMap.swift:83isEnabled
var isEnabled: BoolA public field of this type. Its value type and mutability are shown in the declaration.
Source · KeyMap.swift:84acceptsRepeat
var acceptsRepeat: BoolA public field of this type. Its value type and mutability are shown in the declaration.
Source · KeyMap.swift:86init(_:keys:help:)
init(_ action: Action, keys: [KeyChord], help: String)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (3)
action- Argument type and any default are shown in the declaration; see the behavior notes above.
keys- Argument type and any default are shown in the declaration; see the behavior notes above.
help- Argument type and any default are shown in the declaration; see the behavior notes above.