'Keyboard Event MediaPlayPause
It seems that we can catch the event MediaPlayPause
keyCode: 179
keyIdentifier: "MediaPlayPause"
This is a good news, but actually, I didn't manage to find a way to stop the initial event that do not depend of the browser, but the OS. Did someone find a way to cheat?
EDIT 04/2015:
I guess that's not possible to access the OS from a browser while doing JS.
Solution 1:[1]
You should return false from your event handler, or call both e.preventDefault and e.stopPropagation.
See this other question for the full details: event.preventDefault() vs. return false
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
