summaryrefslogtreecommitdiffstats
path: root/kdecore
diff options
context:
space:
mode:
authorRoman Savochenko <rom_as@oscada.org>2017-07-31 00:30:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-07-31 00:32:35 +0200
commit8193acc745cf000305d85623cd6414e39acee1b6 (patch)
tree804867721a4cfa504289cfa808c99a89e9cf0111 /kdecore
parentfc9c8b690bafa85f286482e3f1168c6837a86263 (diff)
downloadtdelibs-8193acc745cf000305d85623cd6414e39acee1b6.tar.gz
tdelibs-8193acc745cf000305d85623cd6414e39acee1b6.zip
Add brightness keys support
This relates to bug 2781 Signed-off-by: Roman Savochenko <rom_as@oscada.org> (cherry picked from commit 4dd179aaa3f53335428c2fda5b3d356d19349f28)
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/kkeyserver_x11.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/kdecore/kkeyserver_x11.cpp b/kdecore/kkeyserver_x11.cpp
index 1143b22e7..8317a6678 100644
--- a/kdecore/kkeyserver_x11.cpp
+++ b/kdecore/kkeyserver_x11.cpp
@@ -277,6 +277,11 @@ static const TransKey g_rgQtToSymX[] =
#define XF86XK_LaunchD 0x1008FF4D
#define XF86XK_LaunchE 0x1008FF4E
#define XF86XK_LaunchF 0x1008FF4F
+#define XF86XK_MonBrightnessUp 0x1008FF02 /* Monitor/panel brightness */
+#define XF86XK_MonBrightnessDown 0x1008FF03 /* Monitor/panel brightness */
+#define XF86XK_KbdLightOnOff 0x1008FF04 /* Keyboards may be lit */
+#define XF86XK_KbdBrightnessUp 0x1008FF05 /* Keyboards may be lit */
+#define XF86XK_KbdBrightnessDown 0x1008FF06 /* Keyboards may be lit */
// end of XF86keysyms.h
,
{ Qt::Key_Standby, XF86XK_Standby },
@@ -314,6 +319,11 @@ static const TransKey g_rgQtToSymX[] =
{ Qt::Key_LaunchD, XF86XK_LaunchB },
{ Qt::Key_LaunchE, XF86XK_LaunchC },
{ Qt::Key_LaunchF, XF86XK_LaunchD },
+ { Qt::Key_MonBrightnessUp, XF86XK_MonBrightnessUp },
+ { Qt::Key_MonBrightnessDown, XF86XK_MonBrightnessDown },
+ { Qt::Key_KeyboardLightOnOff, XF86XK_KbdLightOnOff },
+ { Qt::Key_KeyboardBrightnessUp, XF86XK_KbdBrightnessUp },
+ { Qt::Key_KeyboardBrightnessDown, XF86XK_KbdBrightnessDown },
#endif
};
#endif //Q_WS_X11