Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to attach a keypress to a javascript code
$(document).keypress(function(e)
{
if(e.charCode == 63) // 63 is for the ? key
{
// add js code here
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.