$("#inputField").keyup(function(event) {
alert(event.keyCode);
alert(event.charCode);
alert(event.which);
alert(String.fromCharCode(event.keyCode));
});
- If I press A (lowercase "a"), output will be:
65, 0, 65, A - If I press Shift+A, the output still same:
65, 0, 65, A
Can someone teach me how to get small letter a when I key in a and get capital letter A when I key in A?