typescript: convert utils/key_map (#23941)

This commit is contained in:
Sébastien Loix 2018-10-26 06:57:15 +02:00 committed by GitHub
parent 63d765e3a0
commit 89d88553cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@
* under the License.
*/
export const keyMap = {
export const keyMap: { [key: number]: string } = {
8: 'backspace',
9: 'tab',
13: 'enter',
@ -117,5 +117,5 @@ export const keyMap = {
220: 'backSlash',
221: 'closeBracket',
222: 'singleQuote',
224: 'meta'
224: 'meta',
};