I am using qt, I am wondering is it possible set double press Esc shortcut? I want to have an effect, when I press Esc twice, a function is called.
Thanks
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.
on each pressing ESC make
and if on any next press
in case
PRESSEDyet not equals"2"(if user pressed it once) after 1-3 seconds reset it to0;and fire event for single press.for the situation when u dont want fire SinglePressEvent in case doublepress just delay singlepress event for 1-2 seconds to wait for second press.. if second press does not appear fire singlepressevent.