Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Francisco on May 14, 2008 08:57
open dhtmlx forum
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.
Answer posted by Support on May 15, 2008 05:59

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.

Attachments (1)