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

Ctrl-Click Select

1 Answer 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Veteran
Matt asked on 03 Aug 2020, 05:48 PM

Is there a way to check if the click event on a node had the control key? Unlike the drag/drop events where you can get the original event, I cannot see the same with the select event...

 

Matt

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 05 Aug 2020, 02:21 PM

Hello Matt,

You can handle the document's "keydown" event and use a flag. Then you can check the value of the flag in the "select" event handler. Here's a dojo in which a message is logged in the console when the user selects a node while holding down Ctrl: https://dojo.telerik.com/USaXuSel

Regards,
Ivan Danchev
Progress Telerik

Tags
TreeView
Asked by
Matt
Top achievements
Rank 1
Veteran
Answers by
Ivan Danchev
Telerik team
Share this question
or