Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 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 | 5 |
| 6 /** @type {Array.<string>} */ | 6 /** @type {Array.<string>} */ |
| 7 var keyboardMap = [ | 7 var keyboardMap = [ |
|
Wez
2015/02/07 02:14:07
You should make clear that this map is US English,
Wez
2015/02/07 02:16:47
In fact, to avoid confusion, I'd suggest prefixing
| |
| 8 '', | 8 '', |
| 9 '', | 9 '', |
| 10 '', | 10 '', |
| 11 'Cancel', | 11 'Cancel', |
| 12 '', | 12 '', |
| 13 '', | 13 '', |
| 14 'Help', | 14 'Help', |
| 15 '', | 15 '', |
| 16 'Backspace', | 16 'Backspace', |
| 17 'Tab', | 17 'Tab', |
| 18 '', | 18 '', |
| 19 '', | 19 '', |
| 20 'Clear', | 20 'Clear', |
| 21 'Enter', | 21 'Enter', |
| 22 'Return', | 22 'Return', |
| 23 '', | 23 '', |
| 24 'Shift', | 24 'Shift', |
| 25 'Control', | 25 'Control', |
| 26 'Alt', | 26 'Alt', // NB: *not* LeftAlt--not all keyboard layouts make the distinction. |
|
Wez
2015/02/07 02:14:07
I don't understand this comment; what's it got to
| |
| 27 'Pause', | 27 'Pause', |
| 28 'CapsLock', | 28 'CapsLock', |
| 29 'Kana', | 29 'Kana', |
| 30 'Eisu', | 30 'Eisu', |
| 31 'Junja', | 31 'Junja', |
| 32 'Final', | 32 'Final', |
| 33 'Hanja', | 33 'Hanja', |
| 34 '', | 34 '', |
| 35 'Escape', | 35 'Escape', |
| 36 'Convert', | 36 'Convert', |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 223 '', | 223 '', |
| 224 '', | 224 '', |
| 225 '', | 225 '', |
| 226 '', | 226 '', |
| 227 'OpenBracket', | 227 'OpenBracket', |
| 228 'Backslash', | 228 'Backslash', |
| 229 'CloseBracket', | 229 'CloseBracket', |
| 230 'Quote', | 230 'Quote', |
| 231 '', | 231 '', |
| 232 'Meta', | 232 'Meta', |
| 233 'AltGr', | 233 'RightAlt', |
|
Wez
2015/02/07 02:14:07
The 'code' name for this key is AltRight, not Righ
| |
| 234 '', | 234 '', |
| 235 'WIN_ICO_HELP', | 235 'WIN_ICO_HELP', |
| 236 'WIN_ICO_00', | 236 'WIN_ICO_00', |
| 237 '', | 237 '', |
| 238 'WIN_ICO_CLEAR', | 238 'WIN_ICO_CLEAR', |
| 239 '', | 239 '', |
| 240 '', | 240 '', |
| 241 'WIN_OEM_RESET', | 241 'WIN_OEM_RESET', |
| 242 'WIN_OEM_JUMP', | 242 'WIN_OEM_JUMP', |
| 243 'WIN_OEM_PA1', | 243 'WIN_OEM_PA1', |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 255 'CRSEL', | 255 'CRSEL', |
| 256 'EXSEL', | 256 'EXSEL', |
| 257 'EREOF', | 257 'EREOF', |
| 258 'PLAY', | 258 'PLAY', |
| 259 'ZOOM', | 259 'ZOOM', |
| 260 '', | 260 '', |
| 261 'PA1', | 261 'PA1', |
| 262 'WIN_OEM_CLEAR', | 262 'WIN_OEM_CLEAR', |
| 263 '' | 263 '' |
| 264 ]; | 264 ]; |
| OLD | NEW |