chore: Modify the code comment.

pull/110/head
jaywcjlove
parent f3cc7a2585
commit 98ce2d6fb6

@ -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;
}

Loading…
Cancel
Save