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

  • Question

  •  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(); 
        }
    });



    Wednesday, November 6, 2019 2:36 PM