-
-
Save tommcfarlin/acdc3ced372aa9fa1d14 to your computer and use it in GitHub Desktop.
This file contains 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
(function( $ ) { | |
'use strict'; | |
$( document ).on( 'keypress', function( evt ) { | |
if ( 13 === evt.which ) { | |
/* Define your functionality here. Note that if you have | |
* code that's being duplicated for, say, a 'click' handler, | |
* then abstract the code into a function and just make a | |
* call to the function. | |
*/ | |
} | |
}); | |
})( jQuery ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment