Answer the question
In order to leave comments, you need to log in
How to make addEventListener work fine in Microsoft Edge?
Hello!
Guys, tell me why addEventListener works fine in all browsers except Microsoft Edge. The problem is in this code:
document.addEventListener("keydown", function(event){
key[event.keyCode] = true;
if(32 in key ){
.... my code ....
}
}, false);
Answer the question
In order to leave comments, you need to log in
As usual, I found the answer myself! Yes, in IE this function works fine, but the error is in EDGE itself... everything is as usual, technology goes one way, and MicroSoft goes the other way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question