Closed hay closed 12 years ago
You can do this with JavaScript, right?
Add global shortcuts to the application while it is not in focus?
That's against OS UI guidelines.
I'm not quite sure what you mean. For example, the official Twitter client has a global shortcut that allows me to post messages, or a tool like Quicksilver allows me to get the command window from everywhere by pressing Cmd-Space.
Ah I see. Nope, I don't that'll get in. You're quite welcome to fork though.
Any reason why you don't think this will get in?
For music website this is a huge benefit, being able to use media keys to control the music player!
(think grooveshark, etc)
I'm a web developer and complete noob to mac development but have a music site I'm development. I'm going to ask a cocoa developer buddy to see if he can't get this working. I think it should be reconsidered for the roadmap, or in other words, +1
Has the decision for this feature changed at all since 2012?
If a PR was offered in https://github.com/MacGapProject/MacGap2 I would roll it in. I think it would add something valuable to the kinds of apps likely built with MacGap.
It would be great to have a way to add global window shortcuts, for example to add global play/pause to a music application.
Maybe something like:
macgap.menu.addHotKey("cmd-alt-p", function() { window.App.pauseSound(); });