Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork235
Open
Description
Would be nice ifNSMenuItem#setShortcut() would handle this correctly. It would need to cache the initial keyEquivalent/keyEquivalentModifierMask and re-apply them when the global shortcut isnil. This would not handle if they change in-between though, so for a foolproof solution, some kind of swizzling would be needed to live store the original keyEquivalent/keyEquivalentModifierMask.
For example, ifNSMenuItem#keyEquivalent is set, it would go to our swizzled property, which would store the original, and then set the effective one based on whether the global shortcut is set or not.