Created
January 18, 2014 00:29
-
-
Save hatefulcrawdad/8484284 to your computer and use it in GitHub Desktop.
Always forget how to program keystrokes in jquery, so I'm creating this to reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).keyup(function(e) { | |
if (e.keyCode == 27) { <DO YOUR WORK HERE> } // esc | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment