Click here to Skip to main content
15,908,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to capture Shift+key(A-Z) or Shift+Control+key(A-Z).
I have declared a javascript function on onkeyup Event and captured the ASCII value of alphabet using event.keycode.
Sometime is the ascii value comes to be 16(ascii value of shift) and sometime the ascii value comes to be 65(ascii value of A).
How to handle this situation and get Ascii value always as 65 and so on.
Posted
Updated 28-May-13 20:18pm
v2
Comments
So, you want to restrict the Shift Key press and allow only Albhabets, right ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900