carlin-q-scott / browser-media-keys

Lets you control many web players using the media keys on your keyboard.
Mozilla Public License 2.0
123 stars 31 forks source link

XF86AudioPause doesn't seem to be caught #135

Open haji-ali opened 7 years ago

haji-ali commented 7 years ago

I am using the plugin with my keyboard and everything works great. However, with my bluetooth headphones, I have to press the play button twice to get youtube to pause or play.

I checked with xev, and it seems that my headphones send a sequence of XF86AudioPause followed by XF86AudioPlay (this seems common for bluetooth headsets). The first is ignored by the plugin.

Is there a quick fix to this?

PS: I am using Linux.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45211421-xf86audiopause-doesn-t-seem-to-be-caught?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github).
yaomtc commented 7 years ago

What version of Linux? It works for me in Arch Linux, but doesn't work for me in CentOS 7 for some reason.