jqGrid icon indicating copy to clipboard operation
jqGrid copied to clipboard

Support inline editing save via <ENTER> and new-line via <SHIFT+ENTER>

Open meterlongcat opened this issue 8 years ago • 1 comments

I'd like to propose an enhancement to jqGrid's textarea inline edittype. This feature currently allows multi-line input, which is excellent. The drawback is that even with 'keys: true' this data can't be saved via the <ENTER> key.

I propose a small modification to grid.inlinedit.js to allow both. The following line:

_if(ta.tagName === 'TEXTAREA') { return true; }_

should become:

_if(ta.tagName === 'TEXTAREA' && e.shiftKey) { return true; }_

This will then allow both functionality, e.g. new lines via <SHIFT+ENTER> and row saving via <ENTER>.

An example of where this functionality is already in use is Microsoft Excel, although I'm sure there are many other examples.

Kind Regards, Jan

meterlongcat avatar May 11 '16 06:05 meterlongcat

Hello,

Will think about this. The problem are the existing users.

Kind Regards

tonytomov avatar Jul 28 '16 09:07 tonytomov