I have the following eventListener:
window.addEventListener("keydown", function(e) {
if(["Space","ArrowUp","ArrowDown"].indexOf(e.key) > -1) {
e.preventDefault();
}
}, false);
How can I romve it?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I have the following eventListener:
window.addEventListener("keydown", function(e) {
if(["Space","ArrowUp","ArrowDown"].indexOf(e.key) > -1) {
e.preventDefault();
}
}, false);
How can I romve it?