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

Checking for modifier keys

1 Answer 14 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
James Crosswell
Top achievements
Rank 1
James Crosswell asked on 22 Jul 2012, 07:58 PM
Is there any way to check if a modifier key is being pressed when an item is dropped on the drop target? I'd like to implement two different drag n drop behaviours and a modifier key is probably the easiest way to do it (although I could probably add a radio to specify the drag n drop mode if modifier keys aren't doable).

Cheers,
Jimmy

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 23 Jul 2012, 06:32 AM
Hello James,

The arguments for DropTarget drop event contains also the original event. So you can assert for modifiers, i.e e.ctrlKey, e.altKey etc.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Drag and Drop
Asked by
James Crosswell
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or