Re: [DOM3Events] Bind to multimedia buttons

On Sep 20, 2013, at 11:11 PM, Joël Cox <joel@joelcox.nl> wrote:

> I've been working on writing up a use case for allowing documents to bind to events from physical keyboard multimedia buttons. The DOM Level 3 Events spec[1] currently has support for these buttons (in the sense that there are specific key identifiers for the buttons, namely MediaNextTrack, MediaPlayPause, MediaPreviousTrack, MediaStop[2]). However, there are a few problems that limit their use:
> 
> 1. A document has to be in focus in order to capture a KeyboardEvent.
> 2. Multimedia button events often won't reach the browser, because the buttons are bound to other media players (e.g. iTunes on OS X, even if iTunes isn't running.)

Boris Smus pointed out that some work to enable this is already underway in the Chromium project.

https://code.google.com/p/chromium/issues/detail?id=131612

Received on Thursday, 26 September 2013 07:01:17 UTC