Skip to content

Instantly share code, notes, and snippets.

@mattcolman
Created September 21, 2015 05:56
Show Gist options
  • Save mattcolman/493c216211edc87bc8e9 to your computer and use it in GitHub Desktop.
Save mattcolman/493c216211edc87bc8e9 to your computer and use it in GitHub Desktop.
$(document).bind("keydown", function (e) {
if (e.keyCode == 8) { // backspace
e.preventDefault()
// do whatever the backspace should do
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment