Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Why doesn't my function override the Alt+D keydown event in Microsoft Edge?

$
0
0

 I am unable to override the keydown event in Microsoft Edge using JavaScript; it works for all other browsers, though. It's navigating to the address bar.

Here's my on keydown event

$(document).keydown(function(e){if(e.altKey && e.key =="d"){
        e.cancelBubble =true;
        e.returnValue =false;
        e.preventDefault();
        e.stopPropagation();
        alert();}});



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>