jqGrid
jqGrid copied to clipboard
Support inline editing save via <ENTER> and new-line via <SHIFT+ENTER>
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
Hello,
Will think about this. The problem are the existing users.
Kind Regards