Check documentation for the latest version of dhtmlxSuite onKeyPress DHTMLX Docs

onKeyPress

fires after each key press when tree is in focus

void onKeyPress(number key,object ev);
keynumberthe key code
evobjectthe native event object

Example

tree.attachEvent("onKeyPress", function(key, ev){
    alert(key);
})

Details

Fires only when enableKeyboardNavigation() was used

Back to top