~ubuntu-branches/ubuntu/trusty/xkeyboard-config/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/116_aluminium_keycodes.patch

  • Committer: Bryce Harrington
  • Date: 2010-03-30 03:34:02 UTC
  • Revision ID: bryce@canonical.com-20100330033402-2z3ywo8akru0u3t3
Cherrypick patches from upstream git

This includes patches to enable the Apple aluminum keyboards, and
various minor layout enhancements or fixes to particular keys.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit 73a12d8ff8fb455712ff50ada6e2815dbe67703c
 
2
Author: Damien Ciabrini <damien.ciabrini@gmail.com>
 
3
Date:   Thu Dec 24 16:18:48 2009 +0100
 
4
 
 
5
    xkeyboard-config: Keycodes for Apple Aluminium Keyboards
 
6
    
 
7
    Aliases for base rules to match geometry definition
 
8
    JIS keyboard aliases necessary for evdev rules
 
9
    
 
10
    Signed-off-by: Damien Ciabrini <damien.ciabrini@gmail.com>
 
11
 
 
12
diff --git a/keycodes/macintosh b/keycodes/macintosh
 
13
index d41ac4b..55e2f79 100644
 
14
--- a/keycodes/macintosh
 
15
+++ b/keycodes/macintosh
 
16
@@ -185,3 +185,27 @@ xkb_keycodes "hhk" {
 
17
     <FK15> = 110;
 
18
 };
 
19
 
 
20
+// Aluminium Keyboards
 
21
+xkb_keycodes "alukbd" {
 
22
+    include "xfree86"
 
23
+
 
24
+    // Fkeys missing in xfree86 keycodes
 
25
+    <FK18> = 129;
 
26
+    <FK19> = 130;
 
27
+
 
28
+    // Eject key that matches the geometry definition
 
29
+    alias <I169> = <K6C>;
 
30
+
 
31
+    // Japanese keypad separator (KPSP in base, JPCM in evdev)
 
32
+    alias <JPCM> = <KPDC>;
 
33
+};
 
34
+
 
35
+// Aluminium Keyboards JIS
 
36
+// As of HID Usage Table v1.11, it seems there are no usages
 
37
+// for keys EISU or KANA. JIS Aluminium Keyboards overcome
 
38
+// this by outputting usages of keys Hanja and Hangul
 
39
+xkb_keycodes "jisevdev" {
 
40
+    alias <KANA> = <HJCV>;   // Switch to kana mode
 
41
+    alias <EISU> = <HNGL>;   // Switch to alphanumeric mode
 
42
+};
 
43
+