Looks like Windows 8 hijacks the ►❚❚ media key: when I press this key, it goes directly to the default system media player.
For example, if I have WMP running, it handles the Play/Pause key even when it is not focused, ignoring the currently active program. If I don't have WMP running, the Play/Pause key is simply ignored in other applications!
This answer shows that you can change the program to which all the ►❚❚ keystrokes go by assigning it as a default media player.
But is there a way to disable this feature completely?
At first I thought that windows explorer registers a hotkey, but I can successfully call RegisterHotKey
with VK_MEDIA_PLAY_PAUSE
: it does not return any error code. This means it was not registered as a hotkey before. But my application still doesn't receive any input events on it.
Ideally, I would like to revert it to the pre-Win8 behaviour: so that any focused application would receive it, unless it is registered as a hotkey by some other application - then it should go to that application.
Is there a setting for this?
How to reproduce: go to pleer.com and start playing any song. Then press the ►❚❚ media key on your keyboard while the browser is focused. Pre-Win8 it worked: the music paused. It no longer works for me on Windows 8.
keyCode
is0
. Try Chrome.