| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @fileoverview Braille hardware keyboard input method. | 8 * @fileoverview Braille hardware keyboard input method. |
| 9 * | 9 * |
| 10 * This method is automatically enabled when a braille display is connected | 10 * This method is automatically enabled when a braille display is connected |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 * @const {number} | 101 * @const {number} |
| 102 */ | 102 */ |
| 103 SPACE: 0x100, | 103 SPACE: 0x100, |
| 104 | 104 |
| 105 /** | 105 /** |
| 106 * Maps key codes on a standard keyboard to the correspodning dots. | 106 * Maps key codes on a standard keyboard to the correspodning dots. |
| 107 * Keys on the 'home row' correspond to the keys on a Perkins-style keyboard. | 107 * Keys on the 'home row' correspond to the keys on a Perkins-style keyboard. |
| 108 * Note that the mapping below is arranged like the dots in a braille cell. | 108 * Note that the mapping below is arranged like the dots in a braille cell. |
| 109 * Only 6 dot input is supported. | 109 * Only 6 dot input is supported. |
| 110 * @private | 110 * @private |
| 111 * @const {Object.<string, number>} | 111 * @const {Object<string, number>} |
| 112 */ | 112 */ |
| 113 CODE_TO_DOT_: {'KeyF': 0x01, 'KeyJ': 0x08, | 113 CODE_TO_DOT_: {'KeyF': 0x01, 'KeyJ': 0x08, |
| 114 'KeyD': 0x02, 'KeyK': 0x10, | 114 'KeyD': 0x02, 'KeyK': 0x10, |
| 115 'KeyS': 0x04, 'KeyL': 0x20, | 115 'KeyS': 0x04, 'KeyL': 0x20, |
| 116 'Space': 0x100 }, | 116 'Space': 0x100 }, |
| 117 | 117 |
| 118 /** | 118 /** |
| 119 * The current engine ID as set by {@code onActivate}, or the empty string if | 119 * The current engine ID as set by {@code onActivate}, or the empty string if |
| 120 * the IME is not active. | 120 * the IME is not active. |
| 121 * @type {string} | 121 * @type {string} |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 label: 'Use standard keyboard for braille', | 448 label: 'Use standard keyboard for braille', |
| 449 style: 'check', | 449 style: 'check', |
| 450 visible: true, | 450 visible: true, |
| 451 checked: this.useStandardKeyboard_, | 451 checked: this.useStandardKeyboard_, |
| 452 enabled: true | 452 enabled: true |
| 453 } | 453 } |
| 454 ] | 454 ] |
| 455 }); | 455 }); |
| 456 } | 456 } |
| 457 }; | 457 }; |
| OLD | NEW |