Enter hotkey to move to next cell in datatable.

I am using an editable datatable, and I want the Enter key to move to the next cell. I know that the tab key does exactly this, but my program’s users want to be able to enter numbers in cells without reaching for the tab key.

I tried adding Enter as a hotkey, but I can’t stop it’s default behavior of closing my editor. How can I make the Enter key do this?

a) you can use webix.delay, and run your custom code after default “close editor” behavior.

if (code == 13){
            var now = this.getEditor();
            webix.delay(function(){
              this.editNext(true, now);
            }, this);
          }

http://webix.com/snippet/bbc482af

b) or you can just disable the default “enter” hotkey

webix.UIManager.removeHotKey("enter");

http://webix.com/snippet/0cce9304

Thanks, the code works great.

Здравствуйте!

Почему-то данный фукнционал не работает. Скопировал полностью код со сниппета, подключил библиотеку непосредственно с вашего CDN (//cdn.webix.com/edge/webix.js)
в результате при нажатии на Enter, в консоли такая ошибка:
webix_debug.js:23221 Uncaught TypeError: this.QD is not a function(…)

Можете что-либо подсказать?
p.s. необходимо реализовать функционал, чтобы по нажатии на Enter, переключалось на следующую ячейку для редактирования, а если ячейка последняя, чтобы создавалась новая строка и т.д.

Спасибо!

День добрый
Я могу подтвердить регрессию в Webix 4.1 GPL ( Webix PRO работает правильно )

Фикс будет включен в следующий билд
Как временное решение можно запатчить пропущенный метод - http://webix.com/snippet/f9362241 ( с выходом 4.2 патч надо будет удалить )

Ясно. Спасибо большое!
Сейчас всё получилось.