Check documentation for the latest version 6.0 of dhtmlxSuite onKeyPress DHTMLX Docs

onKeyPress

fires after each key press when tree is in focus

void onKeyPress(number key,object ev){ ... };

Parameters

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