Skip to content
This repository
Browse code

Merge pull request #2039 from jhsrennie/master

Correct handling of multimedia keypresses
  • Loading branch information...
commit 0c66b4a2bc100d395d7c58f31bae6f69b80b472c 2 parents ea0f2ef + 05df22d
jmarshallnz authored

Showing 1 changed file with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. 19  xbmc/windowing/windows/WinEventsWin32.cpp
19  xbmc/windowing/windows/WinEventsWin32.cpp
@@ -261,6 +261,25 @@ static int XBMC_MapVirtualKey(int scancode, int vkey)
261 261
     case VK_RMENU:
262 262
     case VK_SNAPSHOT:
263 263
     case VK_PAUSE:
  264
+    /* Multimedia keys are already handled */
  265
+    case VK_BROWSER_BACK:
  266
+    case VK_BROWSER_FORWARD:
  267
+    case VK_BROWSER_REFRESH:
  268
+    case VK_BROWSER_STOP:
  269
+    case VK_BROWSER_SEARCH:
  270
+    case VK_BROWSER_FAVORITES:
  271
+    case VK_BROWSER_HOME:
  272
+    case VK_VOLUME_MUTE:
  273
+    case VK_VOLUME_DOWN:
  274
+    case VK_VOLUME_UP:
  275
+    case VK_MEDIA_NEXT_TRACK:
  276
+    case VK_MEDIA_PREV_TRACK:
  277
+    case VK_MEDIA_STOP:
  278
+    case VK_MEDIA_PLAY_PAUSE:
  279
+    case VK_LAUNCH_MAIL:
  280
+    case VK_LAUNCH_MEDIA_SELECT:
  281
+    case VK_LAUNCH_APP1:
  282
+    case VK_LAUNCH_APP2:
264 283
       return vkey;
265 284
   }
266 285
   switch(mvke)

0 notes on commit 0c66b4a

Please sign in to comment.
Something went wrong with that request. Please try again.