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

onSelect doesn't include keyCode properties

1 Answer 47 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 12 Aug 2014, 01:15 AM
I was hoping to detect whether ctrlKey was pressed from the event object passed to the onSelect event, but I can't find it anywhere.
Is it being stripped on purpose or is it hiding somewhere?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 13 Aug 2014, 11:21 AM
Hello Peter,

The ctrlKey property is not passed to the select event of the PanelBar, but only the currentTarget property of the event argument of the click. This is why you are not able to see the ctrlKey property available. As such functionality is not available built-in, you can modify the source code in order to extract the required property.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
PanelBar
Asked by
Peter
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or