• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

修订版4ecb9cdd8fd3a950921a8d2f872259b34295e7bb (tree)
时间2012-06-29 04:26:50
作者Stefan Seidel <android@stef...>
CommiterStefan Seidel

Log Message

add Italian keyboard layout and improve German layout, add support for 102 keys

更改概述

差异

--- a/data/keyboards/Generic.kcm
+++ b/data/keyboards/Generic.kcm
@@ -368,6 +368,12 @@ key BACKSLASH {
368368 ctrl, alt, meta: none
369369 }
370370
371+key BUTTON_1 {
372+ base: '\\'
373+ shift: '|'
374+ ctrl, alt, meta: none
375+}
376+
371377 key SEMICOLON {
372378 label, number: ';'
373379 base: ';'
@@ -607,10 +613,6 @@ key BUTTON_MODE {
607613 base: fallback MENU
608614 }
609615
610-key BUTTON_1 {
611- base: fallback DPAD_CENTER
612-}
613-
614616 key BUTTON_2 {
615617 base: fallback DPAD_CENTER
616618 }
--- a/data/keyboards/Generic.kl
+++ b/data/keyboards/Generic.kl
@@ -105,7 +105,7 @@ key 82 NUMPAD_0
105105 key 83 NUMPAD_DOT
106106 # key 84 (undefined)
107107 # key 85 "KEY_ZENKAKUHANKAKU"
108-key 86 BACKSLASH
108+key 86 BUTTON_1
109109 key 87 F11
110110 key 88 F12
111111 # key 89 "KEY_RO"
@@ -264,7 +264,7 @@ key 269 BUTTON_14
264264 key 270 BUTTON_15
265265 key 271 BUTTON_16
266266
267-key 288 BUTTON_1
267+#key 288 BUTTON_1
268268 key 289 BUTTON_2
269269 key 290 BUTTON_3
270270 key 291 BUTTON_4
--- a/data/keyboards/Generic_de.kcm
+++ b/data/keyboards/Generic_de.kcm
@@ -367,6 +367,13 @@ key BACKSLASH {
367367 ctrl, alt, meta: none
368368 }
369369
370+key BUTTON_1 {
371+ label, number: '<'
372+ base: '<'
373+ shift: '>'
374+ ctrl, alt, meta: '|'
375+}
376+
370377 key SEMICOLON {
371378 label, number: ';'
372379 base: '\u00f6'
@@ -606,10 +613,6 @@ key BUTTON_MODE {
606613 base: fallback MENU
607614 }
608615
609-key BUTTON_1 {
610- base: fallback DPAD_CENTER
611-}
612-
613616 key BUTTON_2 {
614617 base: fallback DPAD_CENTER
615618 }
--- /dev/null
+++ b/data/keyboards/Generic_it.kcm
@@ -0,0 +1,677 @@
1+# 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+# Unrequired 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+
23+type FULL
24+
25+### Basic QWERTY keys ###
26+
27+key A {
28+ label: 'A'
29+ base: 'a'
30+ shift, capslock: 'A'
31+ ctrl, alt, meta: none
32+}
33+
34+key B {
35+ label: 'B'
36+ base: 'b'
37+ shift, capslock: 'B'
38+ ctrl, alt, meta: none
39+}
40+
41+key C {
42+ label: 'C'
43+ base: 'c'
44+ shift, capslock: 'C'
45+ alt: none
46+ shift+alt: none
47+ ctrl, meta: none
48+}
49+
50+key D {
51+ label: 'D'
52+ base: 'd'
53+ shift, capslock: 'D'
54+ ctrl, alt, meta: none
55+}
56+
57+key E {
58+ label: 'E'
59+ base: 'e'
60+ shift, capslock: 'E'
61+ alt: '\u20ac'
62+ ctrl, meta: none
63+}
64+
65+key F {
66+ label: 'F'
67+ base: 'f'
68+ shift, capslock: 'F'
69+ ctrl, alt, meta: none
70+}
71+
72+key G {
73+ label: 'G'
74+ base: 'g'
75+ shift, capslock: 'G'
76+ ctrl, alt, meta: none
77+}
78+
79+key H {
80+ label: 'H'
81+ base: 'h'
82+ shift, capslock: 'H'
83+ ctrl, alt, meta: none
84+}
85+
86+key I {
87+ label: 'I'
88+ base: 'i'
89+ shift, capslock: 'I'
90+ alt: none
91+ ctrl, meta: none
92+}
93+
94+key J {
95+ label: 'J'
96+ base: 'j'
97+ shift, capslock: 'J'
98+ ctrl, alt, meta: none
99+}
100+
101+key K {
102+ label: 'K'
103+ base: 'k'
104+ shift, capslock: 'K'
105+ ctrl, alt, meta: none
106+}
107+
108+key L {
109+ label: 'L'
110+ base: 'l'
111+ shift, capslock: 'L'
112+ ctrl, alt, meta: none
113+}
114+
115+key M {
116+ label: 'M'
117+ base: 'm'
118+ shift, capslock: 'M'
119+ ctrl, alt, meta: none
120+}
121+
122+key N {
123+ label: 'N'
124+ base: 'n'
125+ shift, capslock: 'N'
126+ alt: none
127+ ctrl, meta: none
128+}
129+
130+key O {
131+ label: 'O'
132+ base: 'o'
133+ shift, capslock: 'O'
134+ ctrl, alt, meta: none
135+}
136+
137+key P {
138+ label: 'P'
139+ base: 'p'
140+ shift, capslock: 'P'
141+ ctrl, alt, meta: none
142+}
143+
144+key Q {
145+ label: 'Q'
146+ base: 'q'
147+ shift, capslock: 'Q'
148+ ctrl, alt, meta: none
149+}
150+
151+key R {
152+ label: 'R'
153+ base: 'r'
154+ shift, capslock: 'R'
155+ ctrl, alt, meta: none
156+}
157+
158+key S {
159+ label: 'S'
160+ base: 's'
161+ shift, capslock: 'S'
162+ alt: none
163+ ctrl, meta: none
164+}
165+
166+key T {
167+ label: 'T'
168+ base: 't'
169+ shift, capslock: 'T'
170+ ctrl, alt, meta: none
171+}
172+
173+key U {
174+ label: 'U'
175+ base: 'u'
176+ shift, capslock: 'U'
177+ alt: none
178+ ctrl, meta: none
179+}
180+
181+key V {
182+ label: 'V'
183+ base: 'v'
184+ shift, capslock: 'V'
185+ ctrl, alt, meta: none
186+}
187+
188+key W {
189+ label: 'W'
190+ base: 'w'
191+ shift, capslock: 'W'
192+ ctrl, alt, meta: none
193+}
194+
195+key X {
196+ label: 'X'
197+ base: 'x'
198+ shift, capslock: 'X'
199+ ctrl, alt, meta: none
200+}
201+
202+key Y {
203+ label: 'Y'
204+ base: 'y'
205+ shift, capslock: 'Y'
206+ ctrl, alt, meta: none
207+}
208+
209+key Z {
210+ label: 'Z'
211+ base: 'z'
212+ shift, capslock: 'Z'
213+ ctrl, alt, meta: none
214+}
215+
216+key 0 {
217+ label, number: '0'
218+ base: '0'
219+ shift: ')'
220+ ctrl, alt, meta: none
221+}
222+
223+key 1 {
224+ label, number: '1'
225+ base: '1'
226+ shift: '!'
227+ ctrl, alt, meta: none
228+}
229+
230+key 2 {
231+ label, number: '2'
232+ base: '2'
233+ shift: '"'
234+ ctrl, alt, meta: none
235+}
236+
237+key 3 {
238+ label, number: '3'
239+ base: '3'
240+ shift: '\u00a3'
241+ ctrl, alt, meta: none
242+}
243+
244+key 4 {
245+ label, number: '4'
246+ base: '4'
247+ shift: '\u0024'
248+ ctrl, alt, meta: none
249+}
250+
251+key 5 {
252+ label, number: '5'
253+ base: '5'
254+ shift: '%'
255+ ctrl, alt, meta: none
256+}
257+
258+key 6 {
259+ label, number: '6'
260+ base: '6'
261+ shift: '\u0026'
262+ ctrl, alt, meta: none
263+ alt+shift: none
264+}
265+
266+key 7 {
267+ label, number: '7'
268+ base: '7'
269+ shift: '\u002f'
270+ ctrl, alt, meta: none
271+}
272+
273+key 8 {
274+ label, number: '8'
275+ base: '8'
276+ shift: '\u0028'
277+ ctrl, alt, meta: none
278+}
279+
280+key 9 {
281+ label, number: '9'
282+ base: '9'
283+ shift: '\u0029'
284+ ctrl, alt, meta: none
285+}
286+
287+key SPACE {
288+ label: ' '
289+ base: ' '
290+ ctrl, alt: none
291+ meta: fallback SEARCH
292+}
293+
294+key ENTER {
295+ label: '\n'
296+ base: '\n'
297+ ctrl, alt, meta: none
298+}
299+
300+key TAB {
301+ label: '\t'
302+ base: '\t'
303+ ctrl, alt: none
304+ meta: fallback APP_SWITCH
305+}
306+
307+key COMMA {
308+ label, number: ','
309+ base: ','
310+ shift: '\u003b'
311+ ctrl, alt, meta: none
312+}
313+
314+key PERIOD {
315+ label, number: '.'
316+ base: '.'
317+ shift: '\u003a'
318+ ctrl, alt, meta: none
319+}
320+
321+key SLASH {
322+ label, number: '/'
323+ base: '-'
324+ shift: '_'
325+ ctrl, alt, meta: none
326+}
327+
328+key GRAVE {
329+ label, number: '`'
330+ base: '\\'
331+ shift: '\u007c'
332+ alt: none
333+ alt+shift: none
334+ ctrl, meta: none
335+}
336+
337+key MINUS {
338+ label, number: '-'
339+ base: '\''
340+ shift: '\u003f'
341+ ctrl, alt, meta: none
342+}
343+
344+key EQUALS {
345+ label, number: '='
346+ base: '\u00ec'
347+ shift: '\u00ed'
348+ ctrl, alt, meta: none
349+}
350+
351+key LEFT_BRACKET {
352+ label, number: '['
353+ base: '\u00e8'
354+ shift: '\u00e9'
355+ ctrl, alt, meta: '\u005b'
356+}
357+
358+key RIGHT_BRACKET {
359+ label, number: ']'
360+ base: '\u002b'
361+ shift: '\u002a'
362+ ctrl, alt, meta: '\u005d'
363+}
364+
365+key BACKSLASH {
366+ label, number: '\\'
367+ base: '\u00f9'
368+ shift: '\u00a7'
369+ ctrl, alt, meta: none
370+}
371+
372+key BUTTON_1 {
373+ label, number: '<'
374+ base: '<'
375+ shift: '>'
376+ ctrl, alt, meta: none
377+}
378+
379+key SEMICOLON {
380+ label, number: ';'
381+ base: '\u00f2'
382+ shift: '\u00e7'
383+ ctrl, alt, meta: '\u0040'
384+}
385+
386+key APOSTROPHE {
387+ label, number: '\''
388+ base: '\u00e0'
389+ shift: '\u00b0'
390+ ctrl, alt, meta: '\u0023'
391+}
392+
393+### Numeric keypad ###
394+
395+key NUMPAD_0 {
396+ label, number: '0'
397+ base: fallback INSERT
398+ numlock: '0'
399+ ctrl, alt, meta: none
400+}
401+
402+key NUMPAD_1 {
403+ label, number: '1'
404+ base: fallback MOVE_END
405+ numlock: '1'
406+ ctrl, alt, meta: none
407+}
408+
409+key NUMPAD_2 {
410+ label, number: '2'
411+ base: fallback DPAD_DOWN
412+ numlock: '2'
413+ ctrl, alt, meta: none
414+}
415+
416+key NUMPAD_3 {
417+ label, number: '3'
418+ base: fallback PAGE_DOWN
419+ numlock: '3'
420+ ctrl, alt, meta: none
421+}
422+
423+key NUMPAD_4 {
424+ label, number: '4'
425+ base: fallback DPAD_LEFT
426+ numlock: '4'
427+ ctrl, alt, meta: none
428+}
429+
430+key NUMPAD_5 {
431+ label, number: '5'
432+ base: fallback DPAD_CENTER
433+ numlock: '5'
434+ ctrl, alt, meta: none
435+}
436+
437+key NUMPAD_6 {
438+ label, number: '6'
439+ base: fallback DPAD_RIGHT
440+ numlock: '6'
441+ ctrl, alt, meta: none
442+}
443+
444+key NUMPAD_7 {
445+ label, number: '7'
446+ base: fallback MOVE_HOME
447+ numlock: '7'
448+ ctrl, alt, meta: none
449+}
450+
451+key NUMPAD_8 {
452+ label, number: '8'
453+ base: fallback DPAD_UP
454+ numlock: '8'
455+ ctrl, alt, meta: none
456+}
457+
458+key NUMPAD_9 {
459+ label, number: '9'
460+ base: fallback PAGE_UP
461+ numlock: '9'
462+ ctrl, alt, meta: none
463+}
464+
465+key NUMPAD_LEFT_PAREN {
466+ label, number: '('
467+ base: '('
468+ ctrl, alt, meta: none
469+}
470+
471+key NUMPAD_RIGHT_PAREN {
472+ label, number: ')'
473+ base: ')'
474+ ctrl, alt, meta: none
475+}
476+
477+key NUMPAD_DIVIDE {
478+ label, number: '/'
479+ base: '/'
480+ ctrl, alt, meta: none
481+}
482+
483+key NUMPAD_MULTIPLY {
484+ label, number: '*'
485+ base: '*'
486+ ctrl, alt, meta: none
487+}
488+
489+key NUMPAD_SUBTRACT {
490+ label, number: '-'
491+ base: '-'
492+ ctrl, alt, meta: none
493+}
494+
495+key NUMPAD_ADD {
496+ label, number: '+'
497+ base: '+'
498+ ctrl, alt, meta: none
499+}
500+
501+key NUMPAD_DOT {
502+ label, number: '.'
503+ base: fallback FORWARD_DEL
504+ numlock: '.'
505+ ctrl, alt, meta: none
506+}
507+
508+key NUMPAD_COMMA {
509+ label, number: ','
510+ base: ','
511+ ctrl, alt, meta: none
512+}
513+
514+key NUMPAD_EQUALS {
515+ label, number: '='
516+ base: '='
517+ ctrl, alt, meta: none
518+}
519+
520+key NUMPAD_ENTER {
521+ label: '\n'
522+ base: '\n' fallback ENTER
523+ ctrl, alt, meta: none fallback ENTER
524+}
525+
526+### Special keys on phones ###
527+
528+key AT {
529+ label, number: '@'
530+ base: '@'
531+}
532+
533+key STAR {
534+ label, number: '*'
535+ base: '*'
536+}
537+
538+key POUND {
539+ label, number: '#'
540+ base: '#'
541+}
542+
543+key PLUS {
544+ label, number: '+'
545+ base: '+'
546+}
547+
548+### Non-printing keys ###
549+
550+key ESCAPE {
551+ base: fallback BACK
552+ meta: fallback HOME
553+ alt: fallback MENU
554+}
555+
556+### Gamepad buttons ###
557+
558+key BUTTON_A {
559+ base: fallback BACK
560+}
561+
562+key BUTTON_B {
563+ base: fallback BACK
564+}
565+
566+key BUTTON_C {
567+ base: fallback BACK
568+}
569+
570+key BUTTON_X {
571+ base: fallback DPAD_CENTER
572+}
573+
574+key BUTTON_Y {
575+ base: fallback DPAD_CENTER
576+}
577+
578+key BUTTON_Z {
579+ base: fallback DPAD_CENTER
580+}
581+
582+key BUTTON_L1 {
583+ base: none
584+}
585+
586+key BUTTON_R1 {
587+ base: none
588+}
589+
590+key BUTTON_L2 {
591+ base: none
592+}
593+
594+key BUTTON_R2 {
595+ base: none
596+}
597+
598+key BUTTON_THUMBL {
599+ base: fallback DPAD_CENTER
600+}
601+
602+key BUTTON_THUMBR {
603+ base: fallback DPAD_CENTER
604+}
605+
606+key BUTTON_START {
607+ base: fallback HOME
608+}
609+
610+key BUTTON_SELECT {
611+ base: fallback MENU
612+}
613+
614+key BUTTON_MODE {
615+ base: fallback MENU
616+}
617+
618+key BUTTON_2 {
619+ base: fallback DPAD_CENTER
620+}
621+
622+key BUTTON_3 {
623+ base: fallback DPAD_CENTER
624+}
625+
626+key BUTTON_4 {
627+ base: fallback DPAD_CENTER
628+}
629+
630+key BUTTON_5 {
631+ base: fallback DPAD_CENTER
632+}
633+
634+key BUTTON_6 {
635+ base: fallback DPAD_CENTER
636+}
637+
638+key BUTTON_7 {
639+ base: fallback DPAD_CENTER
640+}
641+
642+key BUTTON_8 {
643+ base: fallback DPAD_CENTER
644+}
645+
646+key BUTTON_9 {
647+ base: fallback DPAD_CENTER
648+}
649+
650+key BUTTON_10 {
651+ base: fallback DPAD_CENTER
652+}
653+
654+key BUTTON_11 {
655+ base: fallback DPAD_CENTER
656+}
657+
658+key BUTTON_12 {
659+ base: fallback DPAD_CENTER
660+}
661+
662+key BUTTON_13 {
663+ base: fallback DPAD_CENTER
664+}
665+
666+key BUTTON_14 {
667+ base: fallback DPAD_CENTER
668+}
669+
670+key BUTTON_15 {
671+ base: fallback DPAD_CENTER
672+}
673+
674+key BUTTON_16 {
675+ base: fallback DPAD_CENTER
676+}
677+
--- a/data/keyboards/common.mk
+++ b/data/keyboards/common.mk
@@ -31,6 +31,7 @@ keylayouts := \
3131 keycharmaps := \
3232 Generic.kcm \
3333 Generic_de.kcm \
34+ Generic_it.kcm \
3435 Virtual.kcm \
3536 qwerty.kcm \
3637 qwerty2.kcm