dhtmlxtree enableMultiselection & onClick

When I enable multiselection and add an onClick-event (to open a new page), the event is fired when I try to select multiple items. Is there a way to prevent this? Or is there a way to get the state of the control-key when the event was fired?


>>Is there a way to prevent this?
Nope, the event will be called for any click on tree item.



>>Or is there a way to get the state of the control-key when the event was fired?
Default code doesn’t provide such info, but it can be easily modified
dhtmlxtree.js, line 1633
else that.callEvent(“onClick”,[obj.id,lastId]);
can be changed to
else that.callEvent(“onClick”,[obj.id,lastId,e.ctrlKey]);



As result event handler, will receive state of ctrl key as third parameter