Structure
KeyboardShortcuts.Name
public struct Name: Hashable
The strongly-typed name of the keyboard shortcut.
After registering it, you can use it in, for example, KeyboardShortcut.Recorder and KeyboardShortcut.onKeyUp().
import KeyboardShortcuts
extension KeyboardShortcuts.Name {
static let toggleUnicornMode = Name("toggleUnicornMode")
}
Relationships
Member Of
KeyboardShortcutsGlobal keyboard shortcuts for your macOS app.
Conforms To
HashableRawRepresentable
Nested Type Aliases
Initializers
init(_:)
public init(_ name: String)
init?(rawValue:)
public init?(rawValue: String)
:nodoc:
Properties
rawValue
let rawValue: String