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

If I don't need global shortcut keys, how do I configure them? #140

Closed JasoniOSDev closed 1 year ago

JasoniOSDev commented 1 year ago

Some of the shortcut keys in my requirements do not require global response. After testing, I found that they are all global now. As a result, when the corresponding shortcut keys are intercepted by my app in other apps, other apps will not respond. method responded

sindresorhus commented 1 year ago

This package is for global keyboard shortcuts. For locale ones, you can just use View#keyboardShortcut() in SwiftUI.

cgfarmer4 commented 5 months ago

@sindresorhus sorry for replying on a closed issue, but is there a clean way to map the editor input provided to a local shortcut?