Improve usability & refactoring

This commit is contained in:
syuilo
2018-09-18 09:20:06 +09:00
parent 55e2ae1408
commit f66c31c771
2 changed files with 15 additions and 26 deletions

View File

@@ -124,15 +124,10 @@ for (let i = 97; i < 123; i++) {
// numbers
for (let i = 48; i < 58; i++) {
codes[i - 48] = i;
codes[i - 48] = [i, (i - 48) + 96];
}
// function keys
for (let i = 1; i < 13; i++) {
codes['f' + i] = i + 111;
}
// numpad keys
for (let i = 0; i < 10; i++) {
codes['numpad ' + i] = i + 96;
}