Subject: Add support for the XF86_Display key (Fn+F7) From: Lubos Lunak Fate: #4147 Patch-upstream: no (maybe todo) Relates: kdelibs4/display-key-support.diff, kdebase4/randr12.diff --- src/gui/kernel/qkeysequence.cpp.sav 2008-08-01 11:56:38.000000000 +0200 +++ src/gui/kernel/qkeysequence.cpp 2008-09-12 14:28:32.000000000 +0200 @@ -376,6 +376,7 @@ static const struct { { Qt::Key_LaunchD, QT_TRANSLATE_NOOP("QShortcut", "Launch (D)") }, { Qt::Key_LaunchE, QT_TRANSLATE_NOOP("QShortcut", "Launch (E)") }, { Qt::Key_LaunchF, QT_TRANSLATE_NOOP("QShortcut", "Launch (F)") }, + { Qt::Key_Display, QT_TRANSLATE_NOOP("QShortcut", "Display") }, // -------------------------------------------------------------- // More consistent namings --- src/gui/kernel/qkeymapper_x11.cpp.sav 2008-08-01 11:56:38.000000000 +0200 +++ src/gui/kernel/qkeymapper_x11.cpp 2008-09-12 14:30:02.000000000 +0200 @@ -745,6 +745,7 @@ extern bool qt_sm_blockUserInput; #define XF86XK_LaunchD 0x1008FF4D #define XF86XK_LaunchE 0x1008FF4E #define XF86XK_LaunchF 0x1008FF4F +#define XF86XK_Display 0x1008FF59 /* Output switch key */ // end of XF86keysyms.h // Special keys used by Qtopia, mapped into the X11 private keypad range. @@ -976,6 +977,8 @@ static const unsigned int KeyTbl[] = { XF86XK_LaunchB, Qt::Key_LaunchD, XF86XK_LaunchC, Qt::Key_LaunchE, XF86XK_LaunchD, Qt::Key_LaunchF, + + XF86XK_Display, Qt::Key_Display, // Qtopia keys QTOPIAXK_Select, Qt::Key_Select, --- src/corelib/global/qnamespace.h.sav 2008-08-01 11:56:34.000000000 +0200 +++ src/corelib/global/qnamespace.h 2001-01-01 01:01:00.000000000 +0100 @@ -915,6 +915,8 @@ public: Key_LaunchD = 0x010000af, Key_LaunchE = 0x010000b0, Key_LaunchF = 0x010000b1, + + Key_Display = 0x01000400, // SUSE Key_MediaLast = 0x0100ffff,