Skip to content

mswietochowski/key-to-charCode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

jQuery getChar takes a key event and returns the ASCII charCode for that event.

Example Usage:

$(document).keydown(function(e) {
    var char = $.getChar(e);
        
    console.log(char);
    console.log(String.fromCharCode(char));
});

This will log the character code and it's corresponding string representation.

About

Converts jQuery key events to ASCII character codes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%