0

Javascript Tastatur-Events mit jQuery

Posted by admin on December 15, 2014 in Js |

Für ein Greasemonkey-Skript brauchte ich Informationen der Tastenanschläge. Mit jQuery ist das einfach:

jQuery(document).keypress(function( event ) {
  console.log( "enent:",event);
  console.log( "keyCode:",event.keyCode );
  console.log( "alt:",event.altKey);
});

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2010-2024 Analysisfreaks.de All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.4, from BuyNowShop.com.

Developed by Hardik