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

[Solved] Set EnableKeyboardShortcuts to true but disable InitInsertKey

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mk
Top achievements
Rank 1
mk asked on 12 Nov 2009, 11:45 PM
Is there a way I can EnableKeyboardShortcuts but not allow InitInsertKey?
I want users to be able to do all the short cuts but insert.


1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 16 Nov 2009, 04:43 PM
Hi mk,

Just attach an event handler to the OnKeyPress event and cancel the event upon the InitInsert key combination as follows:

if (args.get_isCtrlPressed() && args.get_keyCode() == 73)
{
    args.set_cancel(true);
}

Best wishes,
Tsvetoslav
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
Grid
Asked by
mk
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or