loom & weft
Made for Swift.

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

Structure
struct KeyBinding<Action>

Conforms to: Swift.Sendable, Swift.SendableMetatype.

One application action, its remappable chords, and its user-facing description.

Source · KeyMap.swift:80

action

Instance Property
var action: Action

A public field of this type. Its value type and mutability are shown in the declaration.

Source · KeyMap.swift:81

keys

Instance Property
var keys: [KeyChord]

A public field of this type. Its value type and mutability are shown in the declaration.

Source · KeyMap.swift:82

help

Instance Property
var help: String

A public field of this type. Its value type and mutability are shown in the declaration.

Source · KeyMap.swift:83

isEnabled

Instance Property
var isEnabled: Bool

A public field of this type. Its value type and mutability are shown in the declaration.

Source · KeyMap.swift:84

isHidden

Instance Property
var isHidden: Bool

A public field of this type. Its value type and mutability are shown in the declaration.

Source · KeyMap.swift:85

acceptsRepeat

Instance Property
var acceptsRepeat: Bool

A public field of this type. Its value type and mutability are shown in the declaration.

Source · KeyMap.swift:86

init(_:keys:help:)

Initializer
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.
Source · KeyMap.swift:88