I need to fire an event by pressing CTRL+S.
I tried this but it won’t work:
if(e.ctrlKey == true && e.keyCode == 81){
trace("CTRL+S")
}
How can it be done?
Thanks for tips.
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.
It is keyCode 83 for S (in case if you are making that mistake). Moreover, make sure you add your listener on KEY_UP event. Here is a working sample: