×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nicolás Romero
Added: Sep 15, 2015 11:14 AM
Views: 11
Tags: jquery key shift
when the user press shift
  1. $('[id=sugerir]').on('keypress', function(e) {
  2.         if(e.shiftKey ){
  3.            var code = e.keyCode || e.which,
  4.                char = String.fromCharCode(code);
  5.            
  6.            console.warn(char);
  7.            
  8.         }
  9.     });