fires when a key is pressed while the editor is active
code | string | key code |
ctrl | string | control key flag |
shift | string | shift key flag |
ev | Event object | native event object |
myList.attachEvent("onEditKeyPress", function (code, ctrl, shift, ev){
// your code here
return true;
});
the event can be used to define on which key the editing process will be stopped
myList.attachEvent("onEditKeyPress", function (code, ctrl, shift, ev){
if (code == 13)
this.stopEdit();
return true;
});
Back to top