This is a migrated thread and some comments may be shown as answers.

Key gestures in toolbaritems

1 Answer 109 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Lorenz Buchberger
Top achievements
Rank 1
Lorenz Buchberger asked on 09 Jan 2010, 10:49 AM
Hi,
I would like to assign key gestures (like F2, oder Ctrl-F2) to Toolbar Items. How can I do that ?

Kind regards

Lorenz

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 12 Jan 2010, 03:00 PM
Hi Lorenz,
 
Thank you for contacting us.
 
Actually there is no an universal way to bind a shortcut to a preferred functionality of a control. However you have a choice:
  • a Hot-key (only with some controls like buttons);
  • a KeyDown event-handler;
  • a Command with related Input-binding.
 
In the attached example you can find mentioned above techniques implemented.
 
Please give it a try and let us know if you have more questions.
 
Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ToolBar
Asked by
Lorenz Buchberger
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or