Using both tab and enter button for inline editor to move to the next editable cell

Using both tab and enter button for inline editor to move to the next editable cell

xfloydxfloyd Posts: 35Questions: 12Answers: 1

I'm using this code in datatables inline editor, and it works great for tab.
keys: {
columns: ':not(:first-child)',
keys: [9]
},
Is there a way to do ENTER button with it as well?
something along the line.
keys: {
columns: ':not(:first-child)',
keys: [9, 13]
},
I understand that enter is used for save function, but is there a way to advance to the next filed on save?

Answers

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    Hi,

    Currently no - it will just retain focus on the current cell. There is no option in KeyTable to have enter advance to the next cell at the moment - a change would need to be made in the KeyTable library for that to happen.

    Excel does advance to the next cell down when pressing enter, so this is something that I will take a look at adding.

    Allan

This discussion has been closed.