Page 1 of 1

Multimedia keys don't work while FC window is in foreground

Posted: 16.10.2008, 04:08
by blackbox
Many modern keyboards include additional multimedia and internet keys (volume up/down, mute, play/pause, back/forward etc.)
These keys are usually handled by media players, even when they are running in the background, while volume control is handled by Windows.
However, when FC is in foreground, these buttons stop working.

Steps to reproduce:
  1. Launch any media player and start playing some music
  2. Make any FC window active
  3. Try adjusting volume using the keyboard
Actual results:
Volume control buttons don't work when FC window is active. If you switch focus to another window, they will work.

Expected results:
Volume control buttons should work regardless whether FC is an active window or not.

Cause of the bug:
The problem is caused by incorrect handling of WM_APPCOMMAND notification in FC. MSDN says that applications should return TRUE if they process the message: http://msdn.microsoft.com/en-us/library ... S.85).aspx
Therefore, it appears that FC returns TRUE even if it doesn't process the message, preventing other applications to respond to the command keys.

Proposed solution:
Adjust the code so that it returns FALSE when it does not process WM_APPCOMMAND message.

Posted: 16.10.2008, 22:46
by Dreamer
Confirmed! FC beta R388, Win Vista.

Posted: 28.10.2008, 02:25
by Dreamer
Fixed in R389 (beta).

Closed.