[API] Finish register global desktop keyboard shortcut on OSX.