From 98ce2d6fb6d8100b7f98470f92d095cc147ac141 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 17 Sep 2019 09:36:53 +0800 Subject: [PATCH] chore: Modify the code comment. #109 --- src/var.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/var.js b/src/var.js index 9e89d8ae..2676cfd2 100644 --- a/src/var.js +++ b/src/var.js @@ -1,6 +1,7 @@ import { isff } from './utils'; -const _keyMap = { // 特殊键 +// Special Keys +const _keyMap = { backspace: 8, tab: 9, clear: 12, @@ -36,7 +37,8 @@ const _keyMap = { // 特殊键 '\\': 220, }; -const _modifier = { // 修饰键 +// Modifier Keys +const _modifier = { // shiftKey '⇧': 16, shift: 16, @@ -57,7 +59,6 @@ const modifierMap = { 16: 'shiftKey', 18: 'altKey', 17: 'ctrlKey', - // 兼容Firefox处理 91: 'metaKey', shiftKey: 16, @@ -69,12 +70,11 @@ const _mods = { 16: false, 18: false, 17: false, - // 兼容Firefox处理 91: false, }; const _handlers = {}; -// F1~F12 特殊键 +// F1~F12 special key for (let k = 1; k < 20; k++) { _keyMap[`f${k}`] = 111 + k; }