KeyboardShortcuts Documentation Beta

Structure Keyboard​Shortcuts.​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")
}
KeyboardShortcuts.Name KeyboardShortcuts.Name RawRepresentable RawRepresentable KeyboardShortcuts.Name->RawRepresentable Hashable Hashable KeyboardShortcuts.Name->Hashable

Member Of

KeyboardShortcuts

Global keyboard shortcuts for your macOS app.

Conforms To

Hashable
RawRepresentable

Nested Type Aliases

Name

public typealias Name = KeyboardShortcuts.Name

:nodoc:

Initializers

init(_:​)

public init(_ name: String)

init?(raw​Value:​)

public init?(rawValue: String)

:nodoc:

Properties

raw​Value

let rawValue: String