Skip to main content
added 22 characters in body
Source Link
pimvdb
  • 155.2k
  • 80
  • 313
  • 358

You may try like this.:

jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); });

jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); }); 

seeSee demo.

Use firebugFirebug and check console output.

You may try like this.

jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); });

see demo.

Use firebug and check console output

You may try this:

jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); }); 

See demo.

Use Firebug and check console output.

Source Link
robert
  • 8.7k
  • 9
  • 47
  • 71

You may try like this.

jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); });

see demo.

Use firebug and check console output