Posted By

sam2698 on 07/04/12


Tagged

keycatch


Versions (?)

Keycatch Code


 / Published in: JavaScript
 

runs function on key catch codes that you can grab from: http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes

  1. $('body').bind('keypress', function(e) {
  2. if ( event.keyCode == 13 ){
  3. $('.confirm').click();
  4. }
  5. });

Report this snippet  

You need to login to post a comment.