Created
September 8, 2016 20:09
-
-
Save fixmysync/2e33d2ab519bcdf39f36c3464b7cf3c2 to your computer and use it in GitHub Desktop.
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
//close the modal if the escape key is pressed | |
$(document).on('keyup', function(e) { | |
if (e.which === 27) { | |
modal.clear(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment