Datatable and enter key and validation

I wrote earlier about wanting the enter key to accept the current edit and move down in the datatable, instead of just closing the edit. You gave me some sample code which did the job. But …

That code makes it very difficult to properly validate datatable entries. I would like to do something like one of your samples, using onBeforeEditStop to keep the editor on the invalid input until the user corrects it. This is very nice and just what I would like to do. But doing that with the code to make enter move down results in two open edit fields.

Please add an option to datatable to have enter move down (and shift-enter to move up). Then I could use onBeforeEditStop to handle validation and keep the edit field on invalid items until the user corrects them.

Please check the updated snippet
https://webix.com/snippet/e3d0f048

In onKeyPress it possible to force cell closing and to check was it successful or not.

           this.editStop();
            if (!this.getEditor()) //editor was closed

Ahh! That looks like just what I need. Thanks much!