Initializer

init(_:modifiers:)

Creates a new keyboard shortcut with the given key equivalent and set of modifier keys.

Declaration 宣言

init(_ key: KeyEquivalent, modifiers: EventModifiers = .command)

Discussion 議論

The localization configuration defaults to automatic.

See Also 参照

Creating a Shortcut