Qt4 - MediaKeys support, patch by Ilkka Ollakka
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 May 2007 17:38:15 +0000 (17:38 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 May 2007 17:38:15 +0000 (17:38 +0000)
modules/gui/qt4/util/customwidgets.cpp

index 437cde0..b24f9ae 100644 (file)
@@ -144,6 +144,12 @@ int qtEventToVLCKey( QKeyEvent *e )
         HANDLE( Key_End, KEY_END );
         HANDLE( Key_Insert, KEY_INSERT );
         HANDLE( Key_Delete, KEY_DELETE );
+        HANDLE( Key_VolumeDown, KEY_VOLUME_DOWN);
+        HANDLE( Key_VolumeUp, KEY_VOLUME_UP );
+        HANDLE( Key_MediaPlay, KEY_MEDIA_PLAY_PAUSE );
+        HANDLE( Key_MediaStop, KEY_MEDIA_STOP );
+        HANDLE( Key_MediaPrevious, KEY_MEDIA_PREV_TRACK );
+        HANDLE( Key_MediaNext, KEY_MEDIA_NEXT_TRACK );
 
     }
     if( !found )