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