dropped goodmap and badmap for apple macbooks, needed only for old broken kernels...
[xorg/xkeyboard-config] / keycodes / macintosh
1 // $XConsortium: macintosh /main/10 1996/01/24 12:17:35 kaleb $
2 //
3 //Copyright (c) 1996  X Consortium
4 //
5 //Permission is hereby granted, free of charge, to any person obtaining
6 //a copy of this software and associated documentation files (the
7 //"Software"), to deal in the Software without restriction, including
8 //without limitation the rights to use, copy, modify, merge, publish,
9 //distribute, sublicense, and/or sell copies of the Software, and to
10 //permit persons to whom the Software is furnished to do so, subject to
11 //the following conditions:
12 //
13 //The above copyright notice and this permission notice shall be
14 //included in all copies or substantial portions of the Software.
15 //
16 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 //EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 //MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 //IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 //OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 //ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 //OTHER DEALINGS IN THE SOFTWARE.
23 //
24 //Except as contained in this notice, the name of the X Consortium shall
25 //not be used in advertising or otherwise to promote the sale, use or
26 //other dealings in this Software without prior written authorization
27 //from the X Consortium.
28 //
29 // $XFree86: xc/programs/xkbcomp/keycodes/macintosh,v 1.4 2001/10/02 19:57:00 alanh Exp $
30 //
31 default xkb_keycodes "macintosh" {
32    include "xfree86"
33
34    <FK13> = 182;
35    <FK14> = 183;
36    <FK15> = 184;
37    <KPEQ> = 157;
38    
39 };
40
41 xkb_keycodes "old" {
42
43     minimum= 8;
44     maximum= 255;
45
46     <ESC>  = 61;
47     <TLDE> = 58;
48     <AE01> = 26;
49     <AE02> = 27;
50     <AE03> = 28;
51     <AE04> = 29;
52     <AE05> = 31;
53     <AE06> = 30;
54     <AE07> = 34;
55     <AE08> = 36;
56     <AE09> = 33;
57     <AE10> = 37;
58     <AE11> = 35;
59     <AE12> = 32;
60     <BKSP> = 59;
61
62     <TAB>  = 56;
63     <AD01> = 20;
64     <AD02> = 21;
65     <AD03> = 22;
66     <AD04> = 23;
67     <AD05> = 25;
68     <AD06> = 24;
69     <AD07> = 40;
70     <AD08> = 42;
71     <AD09> = 39;
72     <AD10> = 43;
73     <AD11> = 41;
74     <AD12> = 38;
75     <BKSL> = 50;
76
77     <CAPS> = 65;
78     <AC01> = 8;
79     <AC02> = 9;
80     <AC03> = 10;
81     <AC04> = 11;
82     <AC05> = 13;
83     <AC06> = 12;
84     <AC07> = 46;
85     <AC08> = 48;
86     <AC09> = 45;
87     <AC10> = 49;
88     <AC11> = 47;
89     <RTRN> = 44;
90
91     <LSGT> = 18;
92     <AB01> = 14;
93     <AB02> = 15;
94     <AB03> = 16;
95     <AB04> = 17;
96     <AB05> = 19;
97     <AB06> = 53;
98     <AB07> = 54;
99     <AB08> = 51;
100     <AB09> = 55;
101     <AB10> = 52;
102
103     <SPCE> = 57;
104
105     <LCTL> = 62;  // Left Control
106     <LALT> = 63;  // Left Option
107     <LFSH> = 64;  // Left Shift
108     <RALT> = 66;  // Left Command
109 //    <RTSH> = 131; // Right Shift
110 //    <RALT> = 132; // Right Command
111 //    <RCTL> = 133; // Right Control
112 //    <RMTA> = 134; // Right Option
113
114     <FK01> = 130;
115     <FK02> = 128;
116     <FK03> = 107;
117     <FK04> = 126;
118     <FK05> = 104;
119     <FK06> = 105;
120     <FK07> = 106;
121     <FK08> = 108;
122     <FK09> = 109;
123     <FK10> = 117;
124     <FK11> = 111;
125     <FK12> = 119;
126
127     <PRSC> = 113;
128     <SCLK> = 115;
129     <PAUS> = 121;
130
131     <INS>  = 122;
132     <HOME> = 123;
133     <PGUP> = 124;
134     <DELE> = 125;
135     <END>  = 127;
136     <PGDN> = 129;
137
138     <UP>   = 70;
139     <LEFT> = 67;
140     <DOWN> = 69;
141     <RGHT> = 68;
142
143     <NMLK> = 79;
144     <KPEQ> = 89;
145     <KPDV> = 83;
146     <KPMU> = 75;
147
148     <KP7>  = 97;
149     <KP8>  = 99;
150     <KP9>  = 100;
151     <KPSU> = 86;
152
153     <KP4>  = 94;
154     <KP5>  = 95;
155     <KP6>  = 96;
156     <KPAD> = 77;
157
158     <KP1>  = 91;
159     <KP2>  = 92;
160     <KP3>  = 93;
161     <KPEN> = 84;
162
163     <KP0>  = 90;
164     <KPDL> = 73;
165
166     indicator 3 = "Scroll Lock";
167     indicator 2 = "Num Lock";
168     indicator 1 = "Caps Lock";
169
170     alias <ALGR> = <RALT>;
171 };
172
173 xkb_keycodes "hhk" {
174    include "macintosh"
175
176     <AC12> = 51;
177
178     <LWIN> = 49;
179     <EISU> = 131;
180     <KANA> = 129;
181     <RWIN> = 208;
182
183     <FK13> = 111;
184     <FK14> = 78;
185     <FK15> = 110;
186 };
187