From cbc59c938ca9d41a46319eac9692d0f6b765cca9 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Wed, 16 Feb 2011 10:27:38 -0800 Subject: [PATCH] Add keycode definitions required for Apples Expose & Dashboard keys (F3/F4) Apple's Expose and Dashboard keys (F3 and F4) have correct keycodes reported by evdev, but are not mapped. This adds the required keycodes and symbols, using the symbols XF86LaunchA and XF86LaunchB, which allows the keys to be used in compiz configuration. (This patch has been included in Ubuntu since 2010.) Bug: #34351 Ref.: https://bugs.launchpad.net/ubuntu/+bug/520519 Signed-off-by: Bryce Harrington --- keycodes/evdev | 2 ++ symbols/inet | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/keycodes/evdev b/keycodes/evdev index d6963a2..a625b9f 100644 --- a/keycodes/evdev +++ b/keycodes/evdev @@ -189,6 +189,7 @@ default xkb_keycodes "evdev" { = 109; // #define KEY_LINEFEED 101 = 120; // #define KEY_MACRO 112 = 126; // #define KEY_KPPLUSMINUS 118 + = 128; // #define KEY_SCALE 120 = 129; // #define KEY_KPCOMMA 121 = 147; // #define KEY_MENU 139 = 148; // #define KEY_CALC 140 @@ -238,6 +239,7 @@ default xkb_keycodes "evdev" { = 209; // #define KEY_PAUSECD 201 = 210; // #define KEY_PROG3 202 = 211; // #define KEY_PROG4 203 conflicts with AB11 + = 212; // #define KEY_DASHBOARD 204 = 213; // #define KEY_SUSPEND 205 = 214; // #define KEY_CLOSE 206 = 215; // #define KEY_PLAY 207 diff --git a/symbols/inet b/symbols/inet index 5d83ebf..7dadaa6 100644 --- a/symbols/inet +++ b/symbols/inet @@ -126,6 +126,7 @@ xkb_symbols "evdev" { // key { [ ] }; // KEY_MACRO key { [ plusminus ] }; + key { [ XF86LaunchA ] }; key { [ XF86MenuKB ] }; key { [ XF86Calculator ] }; // key { [ ] }; // KEY_SETUP @@ -174,6 +175,7 @@ xkb_symbols "evdev" { key { [ XF86AudioPause ] }; key { [ XF86Launch3 ] }; key { [ XF86Launch4 ] }; + key { [ XF86LaunchB ] }; key { [ XF86Suspend ] }; key { [ XF86Close ] }; key { [ XF86AudioPlay ] }; -- 1.7.2.3