Is there a way to access the "media keys" with Javascript from within a browser tab/window?
I am mainly interested in a google chrome solution.
Using the following code, there doesn't seem to be an event generated for the media keys:
<html>
<body onKeyDown="showKeyCode(event)">
<script type="text/javascript">
function showKeyCode(event) {
alert(event.keyCode);
}
</script>
</body>
</html>
Am I missing something? Could I do better with a Google Chrome extension??