Double click to open and close a node

I am trying to make the tree behave the same as in windows explorer where a double click on either the icon or folder name will expand or close the folder.

By installing a custom onClick event, as suggested in this forum :nerd: , which detects double click by the diff approch, I got it to work fine in FF. But it seems the second click does not fire the onClick event in IE9, which makes that solution limited :frowning:
I have tried installing a onDblClick event, but it seems the double click event only fires on the name, not the icon. Meaning, Iā€™m stuck.
Any ideas how to achieve this?
Thank you.

Could you provide us a completed demo to reproduce your custom events?
docs.dhtmlx.com/doku.php?id=othe ā€¦ leted_demo