| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview A simple English virtual keyboard implementation. | 6 * @fileoverview A simple English virtual keyboard implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * All keys for the rows of the keyboard. | 10 * All keys for the rows of the keyboard. |
| 11 * NOTE: every row below should have an aspect of 12.6. | 11 * NOTE: every row below should have an aspect of 12.6. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 34 new Key(CP('f'), CP('F'), CP('$'), CP(' ')), | 34 new Key(CP('f'), CP('F'), CP('$'), CP(' ')), |
| 35 new Key(CP('g'), CP('G'), CP('%'), CP(' ')), | 35 new Key(CP('g'), CP('G'), CP('%'), CP(' ')), |
| 36 new Key(CP('h'), CP('H'), CP('^'), CP(' ')), | 36 new Key(CP('h'), CP('H'), CP('^'), CP(' ')), |
| 37 new Key(CP('j'), CP('J'), CP('&', 'Ampersand'), CP(' ')), | 37 new Key(CP('j'), CP('J'), CP('&', 'Ampersand'), CP(' ')), |
| 38 new Key(CP('k'), CP('K'), CP('*'), CP('#')), | 38 new Key(CP('k'), CP('K'), CP('*'), CP('#')), |
| 39 new Key(CP('l'), CP('L'), CP('('), CP(' ')), | 39 new Key(CP('l'), CP('L'), CP('('), CP(' ')), |
| 40 new Key(CP('\''), CP('\''), CP(')'), CP(' ')), | 40 new Key(CP('\''), CP('\''), CP(')'), CP(' ')), |
| 41 new SvgKey('return', 'Enter') | 41 new SvgKey('return', 'Enter') |
| 42 ], | 42 ], |
| 43 [ | 43 [ |
| 44 new ShiftKey('left_shift'), | 44 new ShiftKey('left-shift'), |
| 45 new Key(CP('z'), CP('Z'), CP('/'), CP(' ')), | 45 new Key(CP('z'), CP('Z'), CP('/'), CP(' ')), |
| 46 new Key(CP('x'), CP('X'), CP('-'), CP(' ')), | 46 new Key(CP('x'), CP('X'), CP('-'), CP(' ')), |
| 47 new Key(CP('c'), CP('C'), CP('\''), CP(' ')), | 47 new Key(CP('c'), CP('C'), CP('\''), CP(' ')), |
| 48 new Key(CP('v'), CP('V'), CP('"'), CP(' ')), | 48 new Key(CP('v'), CP('V'), CP('"'), CP(' ')), |
| 49 new Key(CP('b'), CP('B'), CP(':'), CP('.')), | 49 new Key(CP('b'), CP('B'), CP(':'), CP('.')), |
| 50 new Key(CP('n'), CP('N'), CP(';'), CP(' ')), | 50 new Key(CP('n'), CP('N'), CP(';'), CP(' ')), |
| 51 new Key(CP('m'), CP('M'), CP('_'), CP(' ')), | 51 new Key(CP('m'), CP('M'), CP('_'), CP(' ')), |
| 52 new Key(CP('!'), CP('!'), CP('{'), CP(' ')), | 52 new Key(CP('!'), CP('!'), CP('{'), CP(' ')), |
| 53 new Key(CP('?'), CP('?'), CP('}'), CP(' ')), | 53 new Key(CP('?'), CP('?'), CP('}'), CP(' ')), |
| 54 new Key(CP('/'), CP('/'), CP('\\'), CP(' ')), | 54 new Key(CP('/'), CP('/'), CP('\\'), CP(' ')), |
| (...skipping 11 matching lines...) Expand all Loading... |
| 66 new SpecialKey('period', '.', '.'), | 66 new SpecialKey('period', '.', '.'), |
| 67 new HideKeyboardKey() | 67 new HideKeyboardKey() |
| 68 ] | 68 ] |
| 69 ]; | 69 ]; |
| 70 | 70 |
| 71 // Add layout to KEYBOARDS, which is defined in common.js | 71 // Add layout to KEYBOARDS, which is defined in common.js |
| 72 KEYBOARDS['us'] = { | 72 KEYBOARDS['us'] = { |
| 73 "definition": KEYS_US, | 73 "definition": KEYS_US, |
| 74 "aspect": 3.15, | 74 "aspect": 3.15, |
| 75 } | 75 } |
| OLD | NEW |