keydown event not working javascipr code example
Example: event listener js keydown not working
window.addEventListener("keydown", function(e){}, true);
//true makes it work
window.addEventListener("keydown", function(e){}, true);
//true makes it work