blob: 24b485d4178dc4a8d2b3368bea59a0c4d38cd3ec [file] [log] [blame]
Jeff Brown497a92c2010-09-12 17:55:08 -07001# Copyright (C) 2010 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#
16# Generic key character map for full alphabetic US English PC style external keyboards.
17#
18# This file is intentionally very generic and is intended to support a broad rang of keyboards.
19# Do not edit the generic key character map to support a specific keyboard; instead, create
20# a new key character map file with the required keyboard configuration.
21#
22
Jeff Brown6b53e8d2010-11-10 16:03:06 -080023type FULL
Jeff Brown497a92c2010-09-12 17:55:08 -070024
Jeff Brown061cf752010-11-18 20:52:43 -080025### Basic QWERTY keys ###
26
Jeff Brown6b53e8d2010-11-10 16:03:06 -080027key A {
28 label: 'A'
29 base: 'a'
30 shift, capslock: 'A'
31 ctrl, alt, meta: none
32}
Jeff Brown497a92c2010-09-12 17:55:08 -070033
Jeff Brown6b53e8d2010-11-10 16:03:06 -080034key B {
35 label: 'B'
36 base: 'b'
37 shift, capslock: 'B'
38 ctrl, alt, meta: none
39}
Jeff Brown497a92c2010-09-12 17:55:08 -070040
Jeff Brown6b53e8d2010-11-10 16:03:06 -080041key C {
42 label: 'C'
43 base: 'c'
44 shift, capslock: 'C'
45 ctrl, alt, meta: none
46}
Jeff Brown497a92c2010-09-12 17:55:08 -070047
Jeff Brown6b53e8d2010-11-10 16:03:06 -080048key D {
49 label: 'D'
50 base: 'd'
51 shift, capslock: 'D'
52 ctrl, alt, meta: none
53}
Jeff Brown497a92c2010-09-12 17:55:08 -070054
Jeff Brown6b53e8d2010-11-10 16:03:06 -080055key E {
56 label: 'E'
57 base: 'e'
58 shift, capslock: 'E'
59 ctrl, alt, meta: none
60}
Jeff Brown497a92c2010-09-12 17:55:08 -070061
Jeff Brown6b53e8d2010-11-10 16:03:06 -080062key F {
63 label: 'F'
64 base: 'f'
65 shift, capslock: 'F'
66 ctrl, alt, meta: none
67}
68
69key G {
70 label: 'G'
71 base: 'g'
72 shift, capslock: 'G'
73 ctrl, alt, meta: none
74}
75
76key H {
77 label: 'H'
78 base: 'h'
79 shift, capslock: 'H'
80 ctrl, alt, meta: none
81}
82
83key I {
84 label: 'I'
85 base: 'i'
86 shift, capslock: 'I'
87 ctrl, alt, meta: none
88}
89
90key J {
91 label: 'J'
92 base: 'j'
93 shift, capslock: 'J'
94 ctrl, alt, meta: none
95}
96
97key K {
98 label: 'K'
99 base: 'k'
100 shift, capslock: 'K'
101 ctrl, alt, meta: none
102}
103
104key L {
105 label: 'L'
106 base: 'l'
107 shift, capslock: 'L'
108 ctrl, alt, meta: none
109}
110
111key M {
112 label: 'M'
113 base: 'm'
114 shift, capslock: 'M'
115 ctrl, alt, meta: none
116}
117
118key N {
119 label: 'N'
120 base: 'n'
121 shift, capslock: 'N'
122 ctrl, alt, meta: none
123}
124
125key O {
126 label: 'O'
127 base: 'o'
128 shift, capslock: 'O'
129 ctrl, alt, meta: none
130}
131
132key P {
133 label: 'P'
134 base: 'p'
135 shift, capslock: 'P'
136 ctrl, alt, meta: none
137}
138
139key Q {
140 label: 'Q'
141 base: 'q'
142 shift, capslock: 'Q'
143 ctrl, alt, meta: none
144}
145
146key R {
147 label: 'R'
148 base: 'r'
149 shift, capslock: 'R'
150 ctrl, alt, meta: none
151}
152
153key S {
154 label: 'S'
155 base: 's'
156 shift, capslock: 'S'
157 ctrl, alt, meta: none
158}
159
160key T {
161 label: 'T'
162 base: 't'
163 shift, capslock: 'T'
164 ctrl, alt, meta: none
165}
166
167key U {
168 label: 'U'
169 base: 'u'
170 shift, capslock: 'U'
171 ctrl, alt, meta: none
172}
173
174key V {
175 label: 'V'
176 base: 'v'
177 shift, capslock: 'V'
178 ctrl, alt, meta: none
179}
180
181key W {
182 label: 'W'
183 base: 'w'
184 shift, capslock: 'W'
185 ctrl, alt, meta: none
186}
187
188key X {
189 label: 'X'
190 base: 'x'
191 shift, capslock: 'X'
192 ctrl, alt, meta: none
193}
194
195key Y {
196 label: 'Y'
197 base: 'y'
198 shift, capslock: 'Y'
199 ctrl, alt, meta: none
200}
201
202key Z {
203 label: 'Z'
204 base: 'z'
205 shift, capslock: 'Z'
206 ctrl, alt, meta: none
207}
208
209key 0 {
210 label, number: '0'
211 base: '0'
212 shift: ')'
213 ctrl, alt, meta: none
214}
215
216key 1 {
217 label, number: '1'
218 base: '1'
219 shift: '!'
220 ctrl, alt, meta: none
221}
222
223key 2 {
224 label, number: '2'
225 base: '2'
226 shift: '@'
227 ctrl, alt, meta: none
228}
229
230key 3 {
231 label, number: '3'
232 base: '3'
233 shift: '#'
234 ctrl, alt, meta: none
235}
236
237key 4 {
238 label, number: '4'
239 base: '4'
240 shift: '$'
241 ctrl, alt, meta: none
242}
243
244key 5 {
245 label, number: '5'
246 base: '5'
247 shift: '%'
248 ctrl, alt, meta: none
249}
250
251key 6 {
252 label, number: '6'
253 base: '6'
254 shift: '^'
255 ctrl, alt, meta: none
256}
257
258key 7 {
259 label, number: '7'
260 base: '7'
261 shift: '&'
262 ctrl, alt, meta: none
263}
264
265key 8 {
266 label, number: '8'
267 base: '8'
268 shift: '*'
269 ctrl, alt, meta: none
270}
271
272key 9 {
273 label, number: '9'
274 base: '9'
275 shift: '('
276 ctrl, alt, meta: none
277}
278
279key SPACE {
280 label: ' '
281 base: ' '
282 ctrl, alt, meta: none
283}
284
285key ENTER {
286 label: '\n'
287 base: '\n'
288 ctrl, alt, meta: none
289}
290
291key TAB {
292 label: '\t'
293 base: '\t'
294 ctrl, alt, meta: none
295}
296
297key COMMA {
298 label, number: ','
299 base: ','
300 shift: '<'
301 ctrl, alt, meta: none
302}
303
304key PERIOD {
305 label, number: '.'
306 base: '.'
307 shift: '>'
308 ctrl, alt, meta: none
309}
310
311key SLASH {
312 label, number: '/'
313 base: '/'
314 shift: '?'
315 ctrl, alt, meta: none
316}
317
318key GRAVE {
319 label, number: '`'
320 base: '`'
321 shift: '~'
322 ctrl, alt, meta: none
323}
324
325key MINUS {
326 label, number: '-'
327 base: '-'
328 shift: '_'
329 ctrl, alt, meta: none
330}
331
332key EQUALS {
333 label, number: '='
334 base: '='
335 shift: '+'
336 ctrl, alt, meta: none
337}
338
339key LEFT_BRACKET {
340 label, number: '['
341 base: '['
342 shift: '{'
343 ctrl, alt, meta: none
344}
345
346key RIGHT_BRACKET {
347 label, number: ']'
348 base: ']'
349 shift: '}'
350 ctrl, alt, meta: none
351}
352
353key BACKSLASH {
354 label, number: '\\'
355 base: '\\'
356 shift: '|'
357 ctrl, alt, meta: none
358}
359
360key SEMICOLON {
361 label, number: ';'
362 base: ';'
363 shift: ':'
364 ctrl, alt, meta: none
365}
366
367key APOSTROPHE {
368 label, number: '\''
369 base: '\''
370 shift: '"'
371 ctrl, alt, meta: none
372}
373
Jeff Brown061cf752010-11-18 20:52:43 -0800374### Numeric keypad ###
375
Jeff Brown6b53e8d2010-11-10 16:03:06 -0800376key NUMPAD_0 {
377 label, number: '0'
378 base: fallback INSERT
379 numlock: '0'
380 ctrl, alt, meta: none
381}
382
383key NUMPAD_1 {
384 label, number: '1'
385 base: fallback MOVE_END
386 numlock: '1'
387 ctrl, alt, meta: none
388}
389
390key NUMPAD_2 {
391 label, number: '2'
392 base: fallback DPAD_DOWN
393 numlock: '2'
394 ctrl, alt, meta: none
395}
396
397key NUMPAD_3 {
398 label, number: '3'
399 base: fallback PAGE_DOWN
400 numlock: '3'
401 ctrl, alt, meta: none
402}
403
404key NUMPAD_4 {
405 label, number: '4'
406 base: fallback DPAD_LEFT
407 numlock: '4'
408 ctrl, alt, meta: none
409}
410
411key NUMPAD_5 {
412 label, number: '5'
413 base: fallback DPAD_CENTER
414 numlock: '5'
415 ctrl, alt, meta: none
416}
417
418key NUMPAD_6 {
419 label, number: '6'
420 base: fallback DPAD_RIGHT
421 numlock: '6'
422 ctrl, alt, meta: none
423}
424
425key NUMPAD_7 {
426 label, number: '7'
427 base: fallback MOVE_HOME
428 numlock: '7'
429 ctrl, alt, meta: none
430}
431
432key NUMPAD_8 {
433 label, number: '8'
434 base: fallback DPAD_UP
435 numlock: '8'
436 ctrl, alt, meta: none
437}
438
439key NUMPAD_9 {
440 label, number: '9'
441 base: fallback PAGE_UP
442 numlock: '9'
443 ctrl, alt, meta: none
444}
445
446key NUMPAD_LEFT_PAREN {
447 label, number: '('
448 base: '('
449 ctrl, alt, meta: none
450}
451
452key NUMPAD_RIGHT_PAREN {
453 label, number: ')'
454 base: ')'
455 ctrl, alt, meta: none
456}
457
458key NUMPAD_DIVIDE {
459 label, number: '/'
460 base: '/'
461 ctrl, alt, meta: none
462}
463
464key NUMPAD_MULTIPLY {
465 label, number: '*'
466 base: '*'
467 ctrl, alt, meta: none
468}
469
470key NUMPAD_SUBTRACT {
471 label, number: '-'
472 base: '-'
473 ctrl, alt, meta: none
474}
475
476key NUMPAD_ADD {
477 label, number: '+'
478 base: '+'
479 ctrl, alt, meta: none
480}
481
482key NUMPAD_DOT {
483 label, number: '.'
484 base: fallback FORWARD_DEL
485 numlock: '.'
486 ctrl, alt, meta: none
487}
488
489key NUMPAD_COMMA {
490 label, number: ','
491 base: ','
492 ctrl, alt, meta: none
493}
494
495key NUMPAD_EQUALS {
496 label, number: '='
497 base: '='
498 ctrl, alt, meta: none
499}
500
501key NUMPAD_ENTER {
502 label: '\n'
503 base: '\n' fallback ENTER
504 ctrl, alt, meta: none fallback ENTER
505}
Jeff Brown061cf752010-11-18 20:52:43 -0800506
507### Special keys on phones ###
508
509key AT {
510 label, number: '@'
511 base: '@'
512}
513
514key STAR {
515 label, number: '*'
516 base: '*'
517}
518
519key POUND {
520 label, number: '#'
521 base: '#'
522}
523
524key PLUS {
525 label, number: '+'
526 base: '+'
527}