W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2013

[DOM3Events] Bind to multimedia buttons

From: JoŽl Cox <joel@joelcox.nl>
Date: Fri, 20 Sep 2013 23:11:50 +0200
Message-Id: <AB77F6CE-326E-47A7-A992-A3BB90AEAD37@joelcox.nl>
To: www-dom@w3.org
Hello everyone,

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.)

I've written up a more detailed rationale and I'd greatly appreciate any feedback:

https://gist.github.com/joelcox/6641424

JoŽl

[1]: http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/Overview.html
[2]: http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/keyset.html#KeySet-Set
Received on Saturday, 21 September 2013 20:35:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:03 UTC