Check documentation for the latest version of dhtmlxSuite onEditKeyPress DHTMLX Docs

onEditKeyPress

fires when a key is pressed while the editor is active

void onEditKeyPress(string code,string ctrl,string shift,Event object ev){ ... };

Parameters

codestringkey code
ctrlstringcontrol key flag
shiftstringshift key flag
evEvent objectnative event object

Example

myDataView.attachEvent("onEditKeyPress", function (code, ctrl, shift, ev){
    // your code here
    return true;
});

Details

the event can be used to define on which key the editing process will be stopped

myDataView.attachEvent("onEditKeyPress", function (code, ctrl, shift, ev){
    if (code == 13)
        this.stopEdit();
    return true;
});
Back to top