DirectFB: Improve mapping of multimedia keys

The play_pause key was mapped incorrectly to direct pause. This one
maps it to togglePlayPause.

The two keys fast-forward and rewind have been mapped to
Key_AudioForward
and Key_AudioRewind, matching XCB and Android mappings.

Change-Id: I481bafab2fdfe1824b49e268e9d0754eef348cbf
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
This commit is contained in:
Allan Sandfeld Jensen 2013-06-14 17:16:49 +02:00 committed by The Qt Project
parent 5cab14b8a1
commit e602003f87

View File

@ -291,12 +291,14 @@ QDirectFbKeyMap::QDirectFbKeyMap()
insert(DIKS_VOLUME_UP , Qt::Key_VolumeUp);
insert(DIKS_VOLUME_DOWN , Qt::Key_VolumeDown);
insert(DIKS_MUTE , Qt::Key_VolumeMute);
insert(DIKS_PLAYPAUSE , Qt::Key_Pause);
insert(DIKS_PLAYPAUSE , Qt::Key_MediaTogglePlayPause);
insert(DIKS_PLAY , Qt::Key_MediaPlay);
insert(DIKS_STOP , Qt::Key_MediaStop);
insert(DIKS_RECORD , Qt::Key_MediaRecord);
insert(DIKS_PREVIOUS , Qt::Key_MediaPrevious);
insert(DIKS_NEXT , Qt::Key_MediaNext);
insert(DIKS_REWIND , Qt::Key_AudioRewind);
insert(DIKS_FASTFORWARD , Qt::Key_AudioForward);
insert(DIKS_F1 , Qt::Key_F1);
insert(DIKS_F2 , Qt::Key_F2);