ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/keycodes
Revision: 1.4
Committed: 2004-01-12T15:29:25Z (20 years, 10 months ago) by cebix
Branch: MAIN
CVS Tags: nigel-build-16, nigel-build-15
Changes since 1.3: +1 -1 lines
Log Message:
Happy New Year! :)

File Contents

# Content
1 # /usr/share/BasiliskII/keycodes
2 #
3 # Basilisk II (C) 1997-2004 Christian Bauer
4 #
5 # This file is used to translate the (server-specific) X11 keycodes to Mac
6 # keycodes depending on the X11 server being used.
7 #
8 # The format of this file is as follows:
9 #
10 # <vendor string>
11 # <X11 keycode> <Mac keycode>
12 # <X11 keycode> <Mac keycode>
13 # <X11 keycode> <Mac keycode>
14 # ...
15 # <vendor string>
16 # <X11 keycode> <Mac keycode>
17 # <X11 keycode> <Mac keycode>
18 # ...
19 #
20 # The "vendor string" must match the first part of the X11 server vendor
21 # description as reported by ServerVendor(). If a match is found, the keycode
22 # translation table is constructed from the following lines. Each line
23 # contains an X11 keycode followed by its associated Mac keycode. Both
24 # keycodes have to be given in decimal. Lines beginning with "#" or ";" are
25 # treated as comments and ignored.
26 #
27
28 #
29 # XFree86
30 #
31 The XFree86 Project, Inc
32 9 53 # Esc
33 67 122 # F1
34 68 120 # F2
35 69 99 # F3
36 70 118 # F4
37 71 96 # F5
38 72 97 # F6
39 73 98 # F7
40 74 100 # F8
41 75 101 # F9
42 76 109 # F10
43 95 103 # F11
44 96 111 # F12
45 111 105 # PrintScrn
46 78 107 # Scroll Lock
47 110 113 # Pause
48 49 10 # `
49 10 18 # 1
50 11 19 # 2
51 12 20 # 3
52 13 21 # 4
53 14 23 # 5
54 15 22 # 6
55 16 26 # 7
56 17 28 # 8
57 18 25 # 9
58 19 29 # 0
59 20 27 # -
60 21 24 # =
61 22 51 # Backspace
62 106 114 # Insert
63 97 115 # Home
64 99 116 # Page Up
65 77 71 # Num Lock
66 112 75 # KP /
67 63 67 # KP *
68 82 78 # KP -
69 23 48 # Tab
70 24 12 # Q
71 25 13 # W
72 26 14 # E
73 27 15 # R
74 28 17 # T
75 29 16 # Y
76 30 32 # U
77 31 34 # I
78 32 31 # O
79 33 35 # P
80 34 33 # [
81 35 30 # ]
82 36 36 # Return
83 107 117 # Delete
84 103 119 # End
85 105 121 # Page Down
86 79 89 # KP 7
87 80 91 # KP 8
88 81 92 # KP 9
89 86 69 # KP +
90 66 57 # Caps Lock
91 38 0 # A
92 39 1 # S
93 40 2 # D
94 41 3 # F
95 42 5 # G
96 43 4 # H
97 44 38 # J
98 45 40 # K
99 46 37 # L
100 47 41 # ;
101 48 39 # '
102 83 86 # KP 4
103 84 87 # KP 5
104 85 88 # KP 6
105 50 56 # Shift Left
106 94 50 # International
107 52 6 # Z
108 53 7 # X
109 54 8 # C
110 55 9 # V
111 56 11 # B
112 57 45 # N
113 58 46 # M
114 59 43 # ,
115 60 47 # .
116 61 44 # /
117 62 56 # Shift Right
118 51 42 # \
119 98 62 # Cursor Up
120 87 83 # KP 1
121 88 84 # KP 2
122 89 85 # KP 3
123 108 76 # KP Enter
124 37 54 # Ctrl Left
125 115 58 # Logo Left (-> Option)
126 64 55 # Alt Left (-> Command)
127 65 49 # Space
128 113 55 # Alt Right (-> Command)
129 116 58 # Logo Right (-> Option)
130 117 50 # Menu (-> International)
131 109 54 # Ctrl Right
132 100 59 # Cursor Left
133 104 61 # Cursor Down
134 102 60 # Cursor Right
135 90 82 # KP 0
136 91 65 # KP .
137
138 #
139 # MacX (keycodes depend on Mac keymap, so this doesn't make much sense...)
140 #
141 MacX
142 61 53 # Esc
143 130 122 # F1
144 128 120 # F2
145 107 99 # F3
146 126 118 # F4
147 104 96 # F5
148 105 97 # F6
149 106 98 # F7
150 108 100 # F8
151 109 101 # F9
152 117 109 # F10
153 111 103 # F11
154 119 111 # F12
155 113 105 # F13/PrintScrn
156 115 107 # F14/Scroll Lock
157 121 113 # F15/Pause
158 18 10 # `
159 26 18 # 1
160 27 19 # 2
161 28 20 # 3
162 29 21 # 4
163 31 23 # 5
164 30 22 # 6
165 34 26 # 7
166 36 28 # 8
167 33 25 # 9
168 37 29 # 0
169 35 27 # -
170 32 24 # =
171 59 51 # Backspace
172 122 114 # Help/Insert
173 123 115 # Home
174 124 116 # Page Up
175 79 71 # Num Lock
176 89 81 # KP =
177 83 75 # KP /
178 75 67 # KP *
179 56 48 # Tab
180 20 12 # Q
181 21 13 # W
182 22 14 # E
183 24 15 # R
184 25 17 # T
185 24 16 # Y
186 40 32 # U
187 42 34 # I
188 39 31 # O
189 43 35 # P
190 41 33 # [
191 38 30 # ]
192 44 36 # Return
193 125 117 # Delete
194 127 119 # End
195 129 121 # Page Down
196 97 89 # KP 7
197 99 91 # KP 8
198 100 92 # KP 9
199 86 78 # KP -
200 65 57 # Caps Lock
201 8 0 # A
202 9 1 # S
203 10 2 # D
204 11 3 # F
205 13 5 # G
206 12 4 # H
207 46 38 # J
208 48 40 # K
209 45 37 # L
210 49 41 # ;
211 47 39 # '
212 50 42 # \
213 94 86 # KP 4
214 95 87 # KP 5
215 96 88 # KP 6
216 77 69 # KP +
217 64 56 # Shift
218 58 50 # International
219 14 6 # Z
220 15 7 # X
221 16 8 # C
222 17 9 # V
223 19 11 # B
224 53 45 # N
225 54 46 # M
226 51 43 # ,
227 55 47 # .
228 52 44 # /
229 134 62 # Cursor Up
230 91 83 # KP 1
231 92 84 # KP 2
232 93 85 # KP 3
233 84 76 # KP Enter
234 62 54 # Ctrl
235 66 58 # Option
236 63 55 # Command
237 57 49 # Space
238 131 59 # Cursor Left
239 133 61 # Cursor Down
240 132 60 # Cursor Right
241 90 82 # KP 0
242 73 65 # KP .
243
244 #
245 # SunOS/OpenWindows
246 #
247 Sun Microsystems, Inc.
248 36 53 # Esc
249 12 122 # F1
250 13 120 # F2
251 15 99 # F3
252 17 118 # F4
253 19 96 # F5
254 21 97 # F6
255 23 98 # F7
256 24 100 # F8
257 25 101 # F9
258 14 109 # F10
259 16 103 # F11
260 18 111 # F12
261 29 105 # PrintScrn
262 30 107 # Scroll Lock
263 28 113 # Pause
264 49 10 # `
265 37 18 # 1
266 38 19 # 2
267 39 20 # 3
268 40 21 # 4
269 41 23 # 5
270 42 22 # 6
271 43 26 # 7
272 44 28 # 8
273 45 25 # 9
274 46 29 # 10
275 47 27 # -
276 48 24 # =
277 50 51 # Backspace
278 51 114 # Help/Insert
279 59 115 # Home
280 103 116 # Page Up
281 105 71 # Num Lock
282 53 75 # KP /
283 54 67 # KP *
284 78 78 # KP -
285 60 48 # Tab
286 61 12 # Q
287 62 13 # W
288 63 14 # E
289 64 15 # R
290 65 17 # T
291 66 16 # Y
292 67 32 # U
293 68 34 # I
294 69 31 # O
295 70 35 # P
296 71 33 # [
297 72 30 # ]
298 96 36 # Return
299 73 117 # Delete
300 81 119 # End
301 130 121 # Page Down
302 75 89 # KP 7
303 76 91 # KP 8
304 77 92 # KP 9
305 132 69 # KP +
306 126 57 # Caps Lock
307 84 0 # A
308 85 1 # S
309 86 2 # D
310 87 3 # F
311 88 5 # G
312 89 4 # H
313 90 38 # J
314 91 40 # K
315 92 37 # L
316 93 41 # ;
317 94 39 # '
318 98 86 # KP 4
319 99 87 # KP 5
320 100 88 # KP 6
321 106 56 # Shift Left
322 131 50 # International
323 107 6 # Z
324 108 7 # X
325 109 8 # C
326 110 9 # V
327 111 11 # B
328 112 45 # N
329 113 46 # M
330 114 43 # ,
331 115 47 # .
332 116 44 # /
333 117 56 # Shift Right
334 95 42 # \
335 27 62 # Cursor Up
336 119 83 # KP 1
337 120 84 # KP 2
338 121 85 # KP 3
339 97 76 # KP Enter
340 83 54 # Ctrl Left
341 26 58 # Option Left
342 127 55 # Command Left
343 128 49 # Space
344 129 55 # Command Right
345 74 58 # Option Right
346 20 54 # Ctrl Right
347 31 59 # Cursor Left
348 34 61 # Cursor Down
349 35 60 # Cursor Right
350 101 82 # KP 0
351 57 65 # KP .
352
353 #
354 # AmiWin
355 #
356 AmiWin
357 77 53 # Esc
358 88 122 # F1
359 89 120 # F2
360 90 99 # F3
361 91 118 # F4
362 92 96 # F5
363 93 97 # F6
364 94 98 # F7
365 95 100 # F8
366 96 101 # F9
367 97 109 # F10
368 8 10 # `
369 9 18 # 1
370 10 19 # 2
371 11 20 # 3
372 12 21 # 4
373 13 23 # 5
374 14 22 # 6
375 15 26 # 7
376 16 28 # 8
377 17 25 # 9
378 18 29 # 10
379 19 27 # -
380 20 24 # =
381 21 42 # \
382 73 51 # Backspace
383 78 117 # Delete
384 103 114 # Help (-> Help/Insert)
385 98 71 # KP [ (-> Num Lock)
386 99 81 # KP ] (-> KP =)
387 100 75 # KP /
388 101 67 # KP *
389 74 48 # Tab
390 24 12 # Q
391 25 13 # W
392 26 14 # E
393 27 15 # R
394 28 17 # T
395 29 16 # Y
396 30 32 # U
397 31 34 # I
398 32 31 # O
399 33 35 # P
400 34 33 # [
401 35 30 # ]
402 76 36 # Return
403 69 89 # KP 7
404 70 91 # KP 8
405 71 92 # KP 9
406 82 78 # KP -
407 107 54 # Ctrl
408 106 57 # Caps Lock
409 40 0 # A
410 41 1 # S
411 42 2 # D
412 43 3 # F
413 44 5 # G
414 45 4 # H
415 46 38 # J
416 47 40 # K
417 48 37 # L
418 49 41 # ;
419 50 39 # '
420 51 42 # International (-> \)
421 84 62 # Cursor Up
422 53 86 # KP 4
423 54 87 # KP 5
424 55 88 # KP 6
425 102 69 # KP +
426 104 56 # Shift Left
427 56 50 # International
428 57 6 # Z
429 58 7 # X
430 59 8 # C
431 60 9 # V
432 61 11 # B
433 62 45 # N
434 63 46 # M
435 64 43 # ,
436 65 47 # .
437 66 44 # /
438 105 56 # Shift Right
439 87 59 # Cursor Left
440 85 61 # Cursor Down
441 86 60 # Cursor Right
442 37 83 # KP 1
443 38 84 # KP 2
444 39 85 # KP 3
445 75 76 # KP Enter
446 108 58 # Alt Left (-> Option)
447 110 55 # Amiga Left (-> Command)
448 72 49 # Space
449 111 55 # Amiga Right (-> Command)
450 109 58 # Alt Right (-> Option)
451 23 82 # KP 0
452 68 65 # KP .