[MacOS] Detecting System Shortcut Keys inside a Swift Application

Hi,

Is there a way to detect if a shortcut key is set as a system shortcut. Or list all the assigned system shortcuts in code. I want to have users set custom shortcut keys in my application (for app functionality), but would want to show them a warning that the shortcut is already a system shortcut.

For eg, Cmd+Space is a system shortcut for Spotlight search and I wouldn't want the user to set it as a custom shortcut within the App.

Thanks

[MacOS] Detecting System Shortcut Keys inside a Swift Application
 
 
Q