summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArnaud Vrac <avrac@freebox.fr>2013-11-27 23:19:06 +0100
committerArnaud Vrac <avrac@freebox.fr>2015-05-07 08:43:28 +0000
commit578c2a0f0bdc14af14745496b3dc10b06a98b0b4 (patch)
tree30979852ad3f3157ac813b25be15f974ae75cb3c /src
parent144777d0be9875135761ee596430c0e1359df833 (diff)
downloadqtwayland-578c2a0f0bdc14af14745496b3dc10b06a98b0b4.tar.gz
qtwayland-578c2a0f0bdc14af14745496b3dc10b06a98b0b4.tar.bz2
qtwayland-578c2a0f0bdc14af14745496b3dc10b06a98b0b4.zip
Map more XKB key codes
Change-Id: I0a2b56043235666bc57b46ae4ac78ca5e24e736d Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src')
-rw-r--r--src/client/qwaylandinputdevice.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
index b2268ae7..3ea9e927 100644
--- a/src/client/qwaylandinputdevice.cpp
+++ b/src/client/qwaylandinputdevice.cpp
@@ -594,13 +594,30 @@ static const uint32_t KeyTbl[] = {
XKB_KEY_Mode_switch, Qt::Key_Mode_switch,
XKB_KEY_script_switch, Qt::Key_Mode_switch,
+ XKB_KEY_XF86Back, Qt::Key_Back,
+ XKB_KEY_XF86Forward, Qt::Key_Forward,
+
XKB_KEY_XF86AudioPlay, Qt::Key_MediaTogglePlayPause, //there isn't a PlayPause keysym, however just play keys are not common
XKB_KEY_XF86AudioPause, Qt::Key_MediaPause,
XKB_KEY_XF86AudioStop, Qt::Key_MediaStop,
XKB_KEY_XF86AudioPrev, Qt::Key_MediaPrevious,
XKB_KEY_XF86AudioNext, Qt::Key_MediaNext,
+ XKB_KEY_XF86AudioRewind, Qt::Key_MediaPrevious,
+ XKB_KEY_XF86AudioForward, Qt::Key_MediaNext,
XKB_KEY_XF86AudioRecord, Qt::Key_MediaRecord,
+ XKB_KEY_XF86AudioMute, Qt::Key_VolumeMute,
+ XKB_KEY_XF86AudioLowerVolume, Qt::Key_VolumeDown,
+ XKB_KEY_XF86AudioRaiseVolume, Qt::Key_VolumeUp,
+
+ XKB_KEY_XF86AudioRandomPlay, Qt::Key_AudioRandomPlay,
+ XKB_KEY_XF86AudioRepeat, Qt::Key_AudioRepeat,
+
+ XKB_KEY_XF86ZoomIn, Qt::Key_ZoomIn,
+ XKB_KEY_XF86ZoomOut, Qt::Key_ZoomOut,
+
+ XKB_KEY_XF86Eject, Qt::Key_Eject,
+
0, 0
};