Commit d1e9a4a4 authored by zhang yaning's avatar zhang yaning

add audio pause mapping in xkb_qt_mapping.

parent afc77c82
......@@ -128,6 +128,7 @@ static const TransKey g_rgQtToSymX[] = {
{ Qt::Key_VolumeMute, XKB_KEY_XF86AudioMute, Qt::KeyboardModifiers() },
{ Qt::Key_VolumeUp, XKB_KEY_XF86AudioRaiseVolume, Qt::KeyboardModifiers() },
{ Qt::Key_MediaPlay, XKB_KEY_XF86AudioPlay, Qt::KeyboardModifiers() },
{ Qt::Key_MediaPause, XKB_KEY_XF86AudioPause, Qt::KeyboardModifiers() },
{ Qt::Key_MediaStop, XKB_KEY_XF86AudioStop, Qt::KeyboardModifiers() },
{ Qt::Key_MediaPrevious, XKB_KEY_XF86AudioPrev, Qt::KeyboardModifiers() },
{ Qt::Key_MediaNext, XKB_KEY_XF86AudioNext, Qt::KeyboardModifiers() },
......
......@@ -116,6 +116,7 @@ static const std::map<xkb_keysym_t, Qt::Key> s_mapping{
{ XKB_KEY_XF86AudioMute, Qt::Key_VolumeMute },
{ XKB_KEY_XF86AudioRaiseVolume, Qt::Key_VolumeUp },
{ XKB_KEY_XF86AudioPlay, Qt::Key_MediaPlay },
{ XKB_KEY_XF86AudioPause, Qt::Key_MediaPause },
{ XKB_KEY_XF86AudioStop, Qt::Key_MediaStop },
{ XKB_KEY_XF86AudioPrev, Qt::Key_MediaPrevious },
{ XKB_KEY_XF86AudioNext, Qt::Key_MediaNext },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment