sindresorhus / KeyboardShortcuts

⌨️ Add user-customizable global keyboard shortcuts (hotkeys) to your macOS app in minutes
https://swiftpackageindex.com/sindresorhus/KeyboardShortcuts/documentation/keyboardshortcuts/keyboardshortcuts
MIT License
1.99k stars 184 forks source link

Allow overriding system-reserved shortcuts #151

Closed tofumatt closed 11 months ago

tofumatt commented 1 year ago

Fix #33.

Updated version of #125 with the linting errors fixed, and "OK" as the default option in the dialog.

Works as-expected in my app:

https://github.com/sindresorhus/KeyboardShortcuts/assets/90871/d155611d-d1b2-4209-97b0-490cd326a1b0

sindresorhus commented 12 months ago

What keyboard combination do you use to test the dialog (to trigger it)?

tofumatt commented 11 months ago

I used "Command + Escape", which is actually my usual keyboard shortcut for an app I'm transitioning to use KeyboardShortcuts from another library, so at first was very confused why it wouldn't work (the old library never detected it was a "reserved shortcut") 😅