I need to create hot-keys for every control + number combination and would prefer not to have create ten commands. Is there any way to do this?
I need to create hot-keys for every control + number combination and would prefer
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 I understand your question, you have a single command, say
MyCommand, and you want to fire it if the user presses CTRL+0 through CTRL+9, and give the command a different parameter for each combination.In that case, just create 10 key bindings in your window, all bound to
MyCommand, and give them a parameter: