dhtmlxtree onKeyPress event

Hi,



I read the documentation of dhtmlxtree v1.6 and i not see any option to set “onKeyPress” event to the tree. I would like to fire “onKeyPress” when any keyboard letter is pressed.



It is possible ?



Regards.


The tree doesn’t provide such kind of event, by using “kn” extension it possible to define custom key event handlers through



    tree.assignKeys(…



You can try to use attached version of _kn extension, I added logic to fire inner “onKeyPress” event to it. ( it will work only if enableKeyboardNavigation called )
This logic most probably will be included in next version of dhtmlxtree.


dhtmlxtree_kn.zip (1.81 KB)