[PATCH 2/7] xkeyboard-config: Keycodes for Apple Aluminium Keyboards

Damien Ciabrini damien.ciabrini at gmail.com
Thu Dec 24 10:46:41 PST 2009


Aliases for base rules to match geometry definition
JIS keyboard aliases necessary for evdev rules
---
 keycodes/macintosh |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/keycodes/macintosh b/keycodes/macintosh
index d41ac4b..55e2f79 100644
--- a/keycodes/macintosh
+++ b/keycodes/macintosh
@@ -185,3 +185,27 @@ xkb_keycodes "hhk" {
     <FK15> = 110;
 };
 
+// Aluminium Keyboards
+xkb_keycodes "alukbd" {
+    include "xfree86"
+
+    // Fkeys missing in xfree86 keycodes
+    <FK18> = 129;
+    <FK19> = 130;
+
+    // Eject key that matches the geometry definition
+    alias <I169> = <K6C>;
+
+    // Japanese keypad separator (KPSP in base, JPCM in evdev)
+    alias <JPCM> = <KPDC>;
+};
+
+// Aluminium Keyboards JIS
+// As of HID Usage Table v1.11, it seems there are no usages
+// for keys EISU or KANA. JIS Aluminium Keyboards overcome
+// this by outputting usages of keys Hanja and Hangul
+xkb_keycodes "jisevdev" {
+    alias <KANA> = <HJCV>;   // Switch to kana mode
+    alias <EISU> = <HNGL>;   // Switch to alphanumeric mode
+};
+
-- 
1.6.3.3



More information about the xorg-devel mailing list