We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ecc38b commit 01c1beaCopy full SHA for 01c1bea
Sources/KeyboardShortcuts/Shortcut.swift
@@ -694,14 +694,13 @@ extension KeyboardShortcuts.Shortcut {
694
return nil
695
}
696
697
- // This can be exposed if anyone needs it, but I prefer to keep the API surface small for now.
698
/**
699
This can be used to show the keyboard shortcut in a `NSMenuItem` by assigning it to `NSMenuItem#keyEquivalent`.
700
701
- Note: Don't forget to also pass `.modifiers` to `NSMenuItem#keyEquivalentModifierMask`.
702
*/
703
@MainActor
704
- var keyEquivalent: String? {
+ public var keyEquivalent: String? {
705
if
706
let key,
707
let specialKey = keyToSpecialKeyMapping[key]
0 commit comments