• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// "standard" XFree86 codes
2// It seems that the "default" must be the first entry in the file.
3
4default xkb_keycodes "xfree86" {
5    include "xfree86(basic)"
6    <BKSL> =  51;
7    alias <AC12> = <BKSL>;
8    <LSGT> =  94;
9};
10
11xkb_keycodes "basic" {
12
13    minimum= 8;
14    maximum= 255;
15
16    <TLDE> =  49;
17    alias <AE00> = <TLDE>;	// Some geometries use AE00
18    <AE01> =  10;
19    <AE02> =  11;
20    <AE03> =  12;
21    <AE04> =  13;
22    <AE05> =  14;
23    <AE06> =  15;
24    <AE07> =  16;
25    <AE08> =  17;
26    <AE09> =  18;
27    <AE10> =  19;
28    <AE11> =  20;
29    <AE12> =  21;
30    <BKSP> =  22;
31
32    <TAB>  =  23;
33    <AD01> =  24;
34    <AD02> =  25;
35    <AD03> =  26;
36    <AD04> =  27;
37    <AD05> =  28;
38    <AD06> =  29;
39    <AD07> =  30;
40    <AD08> =  31;
41    <AD09> =  32;
42    <AD10> =  33;
43    <AD11> =  34;
44    <AD12> =  35;
45    <RTRN> =  36;
46
47    <CAPS> =  66;
48    <AC01> =  38;
49    <AC02> =  39;
50    <AC03> =  40;
51    <AC04> =  41;
52    <AC05> =  42;
53    <AC06> =  43;
54    <AC07> =  44;
55    <AC08> =  45;
56    <AC09> =  46;
57    <AC10> =  47;
58    <AC11> =  48;
59
60    <LFSH> =  50;
61    <AB01> =  52;
62    <AB02> =  53;
63    <AB03> =  54;
64    <AB04> =  55;
65    <AB05> =  56;
66    <AB06> =  57;
67    <AB07> =  58;
68    <AB08> =  59;
69    <AB09> =  60;
70    <AB10> =  61;
71    <RTSH> =  62;
72
73    <LALT> =  64;
74    <LCTL> =  37;
75    <SPCE> =  65;
76    <RCTL> = 109;
77    <RALT> = 113;
78    // Microsoft keyboard extra keys
79    <LWIN> = 115;
80    <RWIN> = 116;
81    <MENU> = 117;
82
83    <ESC>  =   9;
84    <FK01> =  67;
85    <FK02> =  68;
86    <FK03> =  69;
87    <FK04> =  70;
88    <FK05> =  71;
89    <FK06> =  72;
90    <FK07> =  73;
91    <FK08> =  74;
92    <FK09> =  75;
93    <FK10> =  76;
94    <FK11> =  95;
95    <FK12> =  96;
96
97    <PRSC> = 111;
98    <SYRQ> =  92;
99    <SCLK> =  78;
100    <PAUS> = 110;
101    <BRK>  = 114;
102
103    <INS>  = 106;
104    <HOME> =  97;
105    <PGUP> =  99;
106    <DELE> = 107;
107    <END>  = 103;
108    <PGDN> = 105;
109
110    <UP>   =  98;
111    <LEFT> = 100;
112    <DOWN> = 104;
113    <RGHT> = 102;
114
115    <NMLK> =  77;
116    <KPDV> = 112;
117    <KPMU> =  63;
118    <KPSU> =  82;
119
120    <KP7>  =  79;
121    <KP8>  =  80;
122    <KP9>  =  81;
123    <KPAD> =  86;
124
125    <KP4>  =  83;
126    <KP5>  =  84;
127    <KP6>  =  85;
128
129    <KP1>  =  87;
130    <KP2>  =  88;
131    <KP3>  =  89;
132    <KPEN> = 108;
133
134    <KP0>  =  90;
135    <KPDL> =  91;
136    <KPEQ> = 126;
137
138    <FK13> =  118;
139    <FK14> =  119;
140    <FK15> =  120;
141    <FK16> =  121;
142    <FK17> =  122;
143    <KPDC> =  123;
144
145    // Keys that are generated on Japanese keyboards
146
147    alias <HZTG> = <TLDE>;	// Hankaku_Zenkaku toggle
148    <HKTG> =   208;		// Hiragana_Katakana toggle
149    <AB11> =   211;		// backslash/underscore
150    <XFER> =   129;		// Henkan
151    <NFER> =   131;		// Muhenkan
152    <AE13> =   133;		// Yen
153    <EISU> =   210;		// Alphanumeric mode on macintosh
154    <KANA> =   209;		// Kana mode on macintosh
155
156    // Keys that are generated on Korean keyboards
157
158    alias <HNGL> = <FK16>;     // Hangul Latin toggle
159    alias <HJCV> = <FK17>;     // Hangul to Hanja conversion
160
161    // Extended keys that may be generated on "Internet" keyboards.
162    // These are not standardised, hence the meaningless names.
163    // The entries commented out are never generated because the raw codes
164    // in those positions are already used for well-defined keys.
165
166    <I02> =   130;
167    <I04> =   132;
168    alias <I05> = <AE13>;
169    <I06> =   134;
170    <I07> =   135;
171    <I08> =   136;
172    <I09> =   137;
173    <I0A> =   138;
174    <I0B> =   139;
175    <I0C> =   140;
176    <I0D> =   141;
177    <I0E> =   142;
178    <I0F> =   143;
179    <I10> =   144;
180    <I11> =   145;
181    <I12> =   146;
182    <I13> =   147;
183    <I14> =   148;
184    <I15> =   149;
185    <I16> =   150;
186    <I17> =   151;
187    <I18> =   152;
188    <I19> =   153;
189    <I1A> =   154;
190    <I1B> =   155;
191    // <I1C> =   156;	<META>
192    // <I1D> =   157;	<K59>
193    <I1E> =   158;
194    <I1F> =   159;
195    <I20> =   160;
196    <I21> =   161;
197    <I22> =   162;
198    <I23> =   163;
199    <I24> =   164;
200    <I25> =   165;
201    <I26> =   166;
202    <I27> =   167;
203    <I28> =   168;
204    <I29> =   169;
205    // <I2A> =   170;	<K5A>
206    <I2B> =   171;
207    <I2C> =   172;
208    <I2D> =   173;
209    <I2E> =   174;
210    <I2F> =   175;
211    <I30> =   176;
212    <I31> =   177;
213    <I32> =   178;
214    <I33> =   179;
215    <I34> =   180;
216    // <I35> =   181;	<K5B>
217    // <I36> =   182;	<K5D>
218    // <I37> =   183;	<K5E>
219    // <I38> =   184;	<K5F>
220    <I39> =   185;
221    <I3A> =   186;
222    <I3B> =   187;
223    <I3C> =   188;
224    // <I3D> =   189;	<K62>
225    // <I3E> =   190;	<K63>
226    // <I3F> =   191;	<K64>
227    // <I40> =   192;	<K65>
228    // <I41> =   193;	<K66>
229    <I42> =   194;
230    <I43> =   195;
231    <I44> =   196;
232    <I45> =   197;
233    // <I46> =   198;	<K67>
234    // <I47> =   199;	<K68>
235    // <I48> =   200;	<K69>
236    // <I49> =   201;	<K6A>
237    <I4A> =   202;
238    // <I4B> =   203;	<K6B>
239    // <I4C> =   204;	<K6C>
240    // <I4D> =   205;	<K6D>
241    // <I4E> =   206;	<K6E>
242    // <I4F> =   207;	<K6F>
243    // <I50> =   208;	<K70>
244    // <I51> =   209;	<K71>
245    // <I52> =   210;	<K72>
246    // <I53> =   211;	<K73>
247    <I54> =   212;
248    <I55> =   213;
249    <I56> =   214;
250    <I57> =   215;
251    <I58> =   216;
252    <I59> =   217;
253    <I5A> =   218;
254    // <I5B> =   219;	<K74>
255    // <I5C> =   220;	<K75>
256    // <I5D> =   221;	<K76>
257    <I5E> =   222;
258    <I5F> =   223;
259    <I60> =   224;
260    <I61> =   225;
261    <I62> =   226;
262    <I63> =   227;
263    <I64> =   228;
264    <I65> =   229;
265    <I66> =   230;
266    <I67> =   231;
267    <I68> =   232;
268    <I69> =   233;
269    <I6A> =   234;
270    <I6B> =   235;
271    <I6C> =   236;
272    <I6D> =   237;
273    <I6E> =   238;
274    <I6F> =   239;
275    <I70> =   240;
276    <I71> =   241;
277    <I72> =   242;
278    <I73> =   243;
279    <I74> =   244;
280    <I75> =   245;
281    <I76> =   246;
282    <I77> =   247;
283    <I78> =   248;
284    <I79> =   249;
285    <I7A> =   250;
286    <I7B> =   251;
287    <I7C> =   252;
288    alias <IR7C> = <I7C>;
289    <I7D> =   253;
290    alias <IR7D> = <I7D>;
291    <I7E> =   254;
292    <I7F> =   255;
293
294    // MacBooks generate 0x65 for the lower brightness key
295    <II65> =  101;
296
297    // Required for apple/logitech_g15 keyboard
298    <II5D> = 93;
299
300    // Codes generated for scancodes 0x59-0x5f, 0x62-0x76
301    <K59> =   157;		// <I1D>
302    <K5A> =   170;		// <I2A>
303    <K5B> =   181;		// <I35>
304    alias <K5C> = <KPEQ>;
305    <K5D> =   182;		// <I36>
306    <K5E> =   183;		// <I37>
307    <K5F> =   184;		// <I38>
308    <K62> =   189;		// <I3D>
309    <K63> =   190;		// <I3E>
310    <K64> =   191;		// <I3F>
311    <K65> =   192;		// <I40>
312    <K66> =   193;		// <I41>
313    <K67> =   198;		// <I46>
314    <K68> =   199;		// <I47>
315    <K69> =   200;		// <I48>
316    <K6A> =   201;		// <I49>
317    <K6B> =   203;		// <I4B>
318    <K6C> =   204;		// <I4C>
319    <K6D> =   205;		// <I4D>
320    <K6E> =   206;		// <I4E>
321    <K6F> =   207;		// <I4F>
322    alias <K70> = <HKTG>;	// <I50>
323    alias <K71> = <KANA>;	// <I51>
324    alias <K72> = <EISU>;	// <I52>
325    alias <K73> = <AB11>;	// <I53>
326    <K74> =   219;		// <I5B>
327    <K75> =   220;		// <I5C>
328    <K76> =   221;		// <I5D>
329
330    // Solaris compatibility
331
332    alias <LMTA> = <LWIN>;
333    alias <RMTA> = <RWIN>;
334    alias <COMP> = <MENU>;
335    alias <POWR> = <I0C>;
336    alias <MUTE> = <I0D>;
337    alias <VOL-> = <I0E>;
338    alias <VOL+> = <I0F>;
339    alias <HELP> = <I10>;
340    alias <STOP> = <I11>;
341    alias <AGAI> = <I12>;
342    alias <PROP> = <I13>;
343    alias <UNDO> = <I14>;
344    alias <FRNT> = <I15>;
345    alias <COPY> = <I16>;
346    alias <OPEN> = <I17>;
347    alias <PAST> = <I18>;
348    alias <FIND> = <I19>;
349    alias <CUT>  = <I1A>;
350    alias <OUTP> = <I56>;
351    alias <KITG> = <I57>;
352    alias <KIDN> = <I58>;
353    alias <KIUP> = <I59>;
354
355    // Other codes never generated.  The XFree86 ddx never generates
356    // these codes.
357    // Thus we can use them as fake keys
358    <MDSW> =     8;
359    <LVL3> =   124; // <U7C>
360    <ALT>  =   125; // <U7D>
361    <META> =   156; // <I1C>
362    <SUPR> =   127; // <U7F>
363    <HYPR> =   128; // <U80>
364
365    indicator 1 = "Caps Lock";
366    indicator 2 = "Num Lock";
367    indicator 3 = "Scroll Lock";
368
369    alias <ALGR> = <RALT>;
370
371    // For Brazilian ABNT2
372    alias <KPPT> = <I06>;
373};
374
375// What keyboard is this?
376
377xkb_keycodes "102" {
378    include "xfree86(xfree86)"
379
380    // There will be warnings from xkbcomp because of multiple definitions.
381
382    <RALT> = 122;
383    <RCTL> = 123;
384
385    <PRSC> = 121;
386    <PAUS> = 118;
387
388    <INS>  = 131;
389    <HOME> = 135;
390    <PGUP> = 119;
391    <DELE> = 129;
392    <END>  = 130;
393    <PGDN> = 134;
394
395    <UP>   = 128;
396    <LEFT> = 132;
397    <DOWN> = 120;
398    <RGHT> = 133;
399
400    <KPDV> = 125;
401
402    <KPEN> = 124;
403};
404
405
406// IBM ThinkPad Z60m/Z60t/Z61m/Z61t
407xkb_keycodes "thinkpadz60" {
408    include "xfree86(xfree86)"
409    <MENU> = 227;
410};
411