macintosh revision 154daed1
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//
31default xkb_keycodes "macintosh" {
32   include "xfree86"
33
34   <FK13> = 182;
35   <FK14> = 183;
36   <FK15> = 184;
37   <KPEQ> = 157;
38   
39};
40
41xkb_keycodes "badmap" {
42    <TLDE> =  94;
43    <LSGT> =  49;
44};
45
46xkb_keycodes "goodmap" {
47    <TLDE> =  49;
48    <LSGT> =  94;
49};
50
51xkb_keycodes "old" {
52
53    minimum= 8;
54    maximum= 134;
55
56    <ESC>  = 61;
57    <TLDE> = 58;
58    <AE01> = 26;
59    <AE02> = 27;
60    <AE03> = 28;
61    <AE04> = 29;
62    <AE05> = 31;
63    <AE06> = 30;
64    <AE07> = 34;
65    <AE08> = 36;
66    <AE09> = 33;
67    <AE10> = 37;
68    <AE11> = 35;
69    <AE12> = 32;
70    <BKSP> = 59;
71
72    <TAB>  = 56;
73    <AD01> = 20;
74    <AD02> = 21;
75    <AD03> = 22;
76    <AD04> = 23;
77    <AD05> = 25;
78    <AD06> = 24;
79    <AD07> = 40;
80    <AD08> = 42;
81    <AD09> = 39;
82    <AD10> = 43;
83    <AD11> = 41;
84    <AD12> = 38;
85    <BKSL> = 50;
86
87    <CAPS> = 65;
88    <AC01> = 8;
89    <AC02> = 9;
90    <AC03> = 10;
91    <AC04> = 11;
92    <AC05> = 13;
93    <AC06> = 12;
94    <AC07> = 46;
95    <AC08> = 48;
96    <AC09> = 45;
97    <AC10> = 49;
98    <AC11> = 47;
99    <RTRN> = 44;
100
101    <LSGT> = 18;
102    <AB01> = 14;
103    <AB02> = 15;
104    <AB03> = 16;
105    <AB04> = 17;
106    <AB05> = 19;
107    <AB06> = 53;
108    <AB07> = 54;
109    <AB08> = 51;
110    <AB09> = 55;
111    <AB10> = 52;
112
113    <SPCE> = 57;
114
115    <LCTL> = 62;  // Left Control
116    <LALT> = 63;  // Left Option
117    <LFSH> = 64;  // Left Shift
118    <RALT> = 66;  // Left Command
119//    <RTSH> = 131; // Right Shift
120//    <RALT> = 132; // Right Command
121//    <RCTL> = 133; // Right Control
122//    <RMTA> = 134; // Right Option
123
124    <FK01> = 130;
125    <FK02> = 128;
126    <FK03> = 107;
127    <FK04> = 126;
128    <FK05> = 104;
129    <FK06> = 105;
130    <FK07> = 106;
131    <FK08> = 108;
132    <FK09> = 109;
133    <FK10> = 117;
134    <FK11> = 111;
135    <FK12> = 119;
136
137    <PRSC> = 113;
138    <SCLK> = 115;
139    <PAUS> = 121;
140
141    <INS>  = 122;
142    <HOME> = 123;
143    <PGUP> = 124;
144    <DELE> = 125;
145    <END>  = 127;
146    <PGDN> = 129;
147
148    <UP>   = 70;
149    <LEFT> = 67;
150    <DOWN> = 69;
151    <RGHT> = 68;
152
153    <NMLK> = 79;
154    <KPEQ> = 89;
155    <KPDV> = 83;
156    <KPMU> = 75;
157
158    <KP7>  = 97;
159    <KP8>  = 99;
160    <KP9>  = 100;
161    <KPSU> = 86;
162
163    <KP4>  = 94;
164    <KP5>  = 95;
165    <KP6>  = 96;
166    <KPAD> = 77;
167
168    <KP1>  = 91;
169    <KP2>  = 92;
170    <KP3>  = 93;
171    <KPEN> = 84;
172
173    <KP0>  = 90;
174    <KPDL> = 73;
175
176    indicator 3 = "Scroll Lock";
177    indicator 2 = "Num Lock";
178    indicator 1 = "Caps Lock";
179
180    alias <ALGR> = <RALT>;
181};
182
183xkb_keycodes "hhk" {
184   include "macintosh"
185
186    <AC12> = 51;
187
188    <LWIN> = 49;
189    <EISU> = 131;
190    <KANA> = 129;
191    <RWIN> = 208;
192
193    <FK13> = 111;
194    <FK14> = 78;
195    <FK15> = 110;
196};
197
198