Question Restricting what keyboard media keys apply to

Dimitri001

Reputable
Oct 11, 2019
175
9
4,585
I have a keyboard that has a play/pause key which controls whatever piece of media was last used. So, I can have a video open in Firefox and a song in Winamp, the button will play or pause whichever one of those I played or paused last.

Is there some way to restrict the action of the button to Firefox only? So that if I had FFox and Winamp open, it would only ever control Firefox videos.