Skip to content

Instantly share code, notes, and snippets.

@jtmkrueger
Created August 5, 2013 18:30
Show Gist options
  • Save jtmkrueger/6158238 to your computer and use it in GitHub Desktop.
Save jtmkrueger/6158238 to your computer and use it in GitHub Desktop.
fire function on esc with jqeury
var that = this;
$(document).keyup(function(e) {
if (e.keyCode == 27) { that.closePopup(e); }   // esc
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment