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

Bugs and other issues or requests which have been resolved.
Post Reply
Message
Author
blackbox
Posts: 12
Joined: 05.10.2008, 17:34

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

#1 Post by blackbox » 16.10.2008, 02:08

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.

User avatar
Dreamer
Site Admin
Posts: 3539
Joined: 19.08.2007, 21:40
Location: Slovakia

#2 Post by Dreamer » 16.10.2008, 20:46

Confirmed! FC beta R388, Win Vista.

User avatar
Dreamer
Site Admin
Posts: 3539
Joined: 19.08.2007, 21:40
Location: Slovakia

#3 Post by Dreamer » 28.10.2008, 01:25

Fixed in R389 (beta).

Closed.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests