Skip to content

Instantly share code, notes, and snippets.

@m4tm4t
Created November 28, 2013 14:19
Show Gist options
  • Save m4tm4t/7692608 to your computer and use it in GitHub Desktop.
Save m4tm4t/7692608 to your computer and use it in GitHub Desktop.
$(window).on('keydown', function(event) {
if (event.ctrlKey && event.which != 17) {
if (event.which == 80) {
event.preventDefault();
alert('CTRL + P !');
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment