Initializer

init(_:modifiers:localization:)

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

Declaration 宣言

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

Discussion 議論

Use the localization parameter to specify a localization strategy for this shortcut.

See Also 参照

Creating a Localized Shortcut