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

IE 11 doesn't fire keyup event for PrntScrn (keyCode 44)

$
0
0

When page loaded IE 11 doesn't fire event when user pressed Print Screen (keyCode 44)  for first time. But it works fine after other button pressed.

var target = isIE8 ? $(document) : $window;
target.on("keyup keydown keypress", function (e) {
    if (e.keyCode === 44) { // 44 -> PrintScreen button code
        e.preventDefault();
        e.stopImmediatePropagation();
    }
});


Viewing all articles
Browse latest Browse all 3527

Trending Articles



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