Single edit item save when clicking away from the cell

Single edit item save when clicking away from the cell

GrayLeaf1GrayLeaf1 Posts: 6Questions: 3Answers: 0

Hi,
I have KeyTables and in-line edit implemented and they work great. By design, when editing in-line it's necessary to click a field to make it editable and to press the "Enter" key to save. I have a requirement to have Excel-like behavior so that when navigating with the keyboard the cells are already editable and when making an edit, the changes are saved when clicking away or using keyboard navigation. In other words, users want to save edits without using the "Enter" key.

Here is the user story:

As a DataTables user, I need the single-edit cell to save when I click away from it so that I don't have to press the Enter button.

Acceptance criteria:
- When navigating with the keyboard, each cell becomes editable (without clicking on it).
- When navigating (either clicking or using the keyboard) away from a cell, any changes are saved

I think the relevant section of code is here in dataTables.keyTable.js but I'm not sure what to edit:

Can you please provide me some direction on how the above story can be met?

Thanks,
John

This discussion has been closed.