typescript: convert utils/key_map (#23941) (#24655)

This commit is contained in:
Sébastien Loix 2018-11-26 08:26:46 +01:00 committed by GitHub
parent d27e49f0a6
commit 0743bbcb78
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',
};