It seems the mac multimedia keys are not yet supported by JUCE. I have found declarations of keycodes in KeyPress that could be used. Simply adding a shortcut in my app did not work though. Pressing the play button on the mac keyboard still brought up boring iTunes even though my App was running in the foreground.
Here is a link that shows how this could be implemented in a regular Cocoa App:
And here is SPMediaKeyTap that does the same, but in a more fancy way that prevents iTunes from starting.
It seems to make this work JUCE would need to subclass NSApplication. I have looked around in the JUCE source code but wasn’t able to find the place were this happens.
I would think having support for the mac multimedia keys would be nice. Do you think it is a good idea to add that? If so how should I go about adding this to JUCE? Just a short comment to send me on the right track should be sufficient.