Keyboard Media Keys
||Date Originated:||23-Nov-2011 11:54 AM|
|Product:||Mac OS X SDK
23-Nov-2011 12:54 PM Terin Stock:
* There is currently no method for the sharing/marshaling of the media key events (generated by hitting the rewind, play/pause and forward keys (F7-F9) on an Apple keyboard) across applications.
* API to share the media keys between applications.
* Each application must implement own handling of events, to the determent of all others
10-Apr-2012 01:28 PM Terin Stock:
As we move to sandboxed applications, the need for this API is even greater.
While one can still respond to the media keys by implementing -[NSApplication sendEvent:], sandboxed applications can not implement a CGEventTap (listening for NX_KEYTYPE_PLAY, NX_KEYTYPE_FAST and NX_KEYTYPE_REWIND).
Without CGEventTap or an official media key API, there is no way to coordinate access to these keys between applications so that pressing play in my application won't start iTunes or another application using media keys. In addition, it is not possible to use the media keys while your application is not active, the most common use case.
In addition, I request a status update regarding this issue.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!