I want to detect if ctrl is held down when the user clicks a button. The ‘clicked’ signal doesn’t seem to pass enough information to the callback to work this out.
Share
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.
If you can connect to either
button-press-eventorbutton-release-eventinstead ofclicked, theeventpassed to the callback can be used to get the modifier state (usingget_state) and check if control key is pressed. For ex.Hope this helps!