Remove debug log I left in and fix konami code
This commit is contained in:
parent
f8f6a133d5
commit
293c818eb2
@ -10,7 +10,6 @@ $(document).on("keydown", function (e) {
|
||||
if (lastKeys.length > 10) {
|
||||
lastKeys.shift();
|
||||
}
|
||||
a = e
|
||||
|
||||
if (devKeys) {
|
||||
let modifiedLastKeys = []
|
||||
@ -38,7 +37,7 @@ $(document).on("keydown", function (e) {
|
||||
function checkKonami(e) {
|
||||
if (lastKeys.length === konamiCode.length) {
|
||||
for (let i = 0; i < lastKeys.length; i++) {
|
||||
if (lastKeys[i] != konamiCode[i]) {
|
||||
if (lastKeys[i].key != konamiCode[i]) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -253,7 +253,6 @@ function setupEvents() {
|
||||
}
|
||||
},
|
||||
keydown: (e) => {
|
||||
console.log(e.keyCode + e.key + e.ctrlKey)
|
||||
if (processMessageKey(e)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user