I want to know how to get the ASCII code for the combination of keys. Like I want to handle event for some unique key combination [alt+ctrl+shift].
Alternatively can you please tell me the ASCII code for [alt+Enter], [ctrl+Enter].
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are flags on the
eventobject that tell you if the alt, control or shift keys have been entered:To get the key code (e.g. space), you need to check the
event.keycode(13 will get you enter)