How can I disable the enter key in the Editor ?
How can I disable the enter key in the Editor ?
hschneider
Posts: 2Questions: 1Answers: 0
in Editor
Hi,
I have a Datatable with an Editor which pops up in a lightbox:
var masterEditor = new $.fn.dataTable.Editor( {
ajax: url_ajax,
table: "#table_main",
...
How can I disable the enter key, so that it does now submit the form ?
I searched the forum, but all existing replies seem to deal with the inline editor, only.
Thank you very much,
Harald
This discussion has been closed.
Answers
Sorry - the solution is:
Hope this helps others as well.
A more consistent naming structure was introduce in 1.5:
onReturn
specifically (form-options
). ThesubmitOnReturn
name is still supported for backwards compatibility though.Allan