I want to disable print for some webpages. How to wireup cross browser hotkeys (Cntrl + P) to a javascript that will be fired whenever hotkeys are pressed?
You can override by capturing the event.
jQuery(document).bind("keyup keydown", function(e){ if(e.ctrlKey && e.keyCode == 80){ return false; } });
1.4m articles
1.4m replys
5 comments
57.0k users