Closed dylman123 closed 4 years ago
This post looks promising: https://stackoverflow.com/questions/61153562/how-to-detect-keyboard-events-in-swiftui-on-macos New struct in Xcode 12: https://developer.apple.com/documentation/swiftui/keyboardshortcut
Done! will close for now. However the menu shortcuts probably need to be cleaned up at some point.
May require this to be listed on App store, for accessibility purposes. Have not yet figured out how to integrate to Apple's native keyboard shortcuts in Xcode 12 beta. 3rd party pods such as Hotkeys are not the way to go here.