Skip to content

Commit

Permalink
chore: Modify the code comment. #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 17, 2019
1 parent f3cc7a2 commit 98ce2d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/var.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { isff } from './utils';

const _keyMap = { // 特殊键
// Special Keys
const _keyMap = {
backspace: 8,
tab: 9,
clear: 12,
Expand Down Expand Up @@ -36,7 +37,8 @@ const _keyMap = { // 特殊键
'\\': 220,
};

const _modifier = { // 修饰键
// Modifier Keys
const _modifier = {
// shiftKey
'⇧': 16,
shift: 16,
Expand All @@ -57,7 +59,6 @@ const modifierMap = {
16: 'shiftKey',
18: 'altKey',
17: 'ctrlKey',
// 兼容Firefox处理
91: 'metaKey',

shiftKey: 16,
Expand All @@ -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;
}
Expand Down

0 comments on commit 98ce2d6

Please sign in to comment.