Created
March 28, 2017 03:47
-
-
Save allusis/f4cf4dc90170b729c10a515818f3e5ad to your computer and use it in GitHub Desktop.
jQuery on ESC
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
// When ESC is pressed | |
$(document).on('keyup',function(evt) { | |
if (evt.keyCode == 27) { | |
// Do what you need to do. | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment