Is there a way to make the <Return> event call on the key release, instead of press?
If you use <KeyRelease>, then event.char is blank for any special key, not just return.
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.
You can explicitly set a binding on the release of the return key by binding to
<KeyRelease-Return>.For example:
If you don’t want anything to happen on a press of the return key you can remove the default binding, or create your own binding which returns
"break"