<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><br>On 11 Dec, 2011, at 7:37 PM, Marc Delisle <<a ymailto="mailto:marc@infomarc.info" href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br><br>> Le 2011-11-14 10:58, Aris Feryanto a écrit :<br>>> Hi all,<br>>> <br>>> <br>>> On 12 Nov, 2011, at 2:29 AM, Piotr Przybylski<<a ymailto="mailto:piotr.prz@gmail.com" href="mailto:piotr.prz@gmail.com">piotr.prz@gmail.com</a>><br>>> wrote:<br>>> <br>>>> 2011/11/11 Marc Delisle<<a ymailto="mailto:marc@infomarc.info" href="mailto:marc@infomarc.info">marc@infomarc.info</a>>:<br>>>>> Piotr Przybylski a écrit :<br>>>>>> 2011/11/11 Marc Delisle<<a ymailto="mailto:marc@infomarc.info" href="mailto:marc@infomarc.info">marc@infomarc.info</a>>:<br>>>>>>> Dieter Adriaenssens a
écrit :<br>>>>>>>> Kind regards, Dieter Adriaenssens. Op 11 nov. 2011 16:00<br>>>>>>>> schreef "Marc Delisle"<<a ymailto="mailto:marc@infomarc.info" href="mailto:marc@infomarc.info">marc@infomarc.info</a><br>>>>>>>> <mailto:<a ymailto="mailto:marc@infomarc.info" href="mailto:marc@infomarc.info">marc@infomarc.info</a>>> het volgende:<br>>>>>>>>> <br>>>>>>>>> Hi, when grid editing a TEXT column, hitting ENTER<br>>>>>>>>> transmits my change instead of inserting a new line.<br>>>>>>>> <br>>>>>>>> It makes sense that in this case a new line is added, but<br>>>>>>>> how should the entry be submitted in the database? If I'm<br>>>>>>>> not mistaken there is no submit button at the moment.<br>>>>>>> Dieter, by
default, $cfg['SaveCellsAtOnce'] is set to false,<br>>>>>>> thus not showing a submit button.<br>>>>>>> <br>>>>>>> When setting it to true, a submit button appears but the<br>>>>>>> field closes as soon as ENTER is hit.<br>>>>>>> <br>>>>>>> If we want to support grid editing + newlines, a possible<br>>>>>>> solution would be to ask the user to click outside the input<br>>>>>>> field but it's less efficient.<br>>>>>>> <br>>>>>> <br>>>>>> How about ignoring Shift+ENTER for submitting? This way ENTER<br>>>>>> would submit form and Shift+ENTER would just insert a newline.<br>>>>>> <br>>>>> Yes but is Shift+Enter intuitive enough or do we need to -<br>>>>> advertise it on the page - explain it in
Documentation.html<br>>>>> <br>>>> <br>>>> I've seen it used in a few places, but it's not common - some<br>>>> "Press Shift+Enter for newline" message under text field would be<br>>>> needed.<br>>>> <br>>> <br>>> Yes. I agree to use Shift+Enter and display a hint for that. I'll try<br>>> to fix this and the RTL alignment on this weekend.<br>> <br>> Hi Aris,<br>> any progress on this?<br>> </div><div><br></div><div>Hi Marc,</div><div><br></div><div>I've added the shift+enter handling in my repo [1].</div><div>I also added OK and Cancel button in the editing area.</div><div>But, I haven't finished fixing the RTL alignment.</div><div><br></div><div>If you have some time, you may test the shift+enter and the buttons in my repo.</div><div><br></div><div>[1] <a
href="http://repo.or.cz/w/phpmyadmin/arisferyanto.git">http://repo.or.cz/w/phpmyadmin/arisferyanto.git</a></div><div><br></div><div><br></div><div>Regards,</div><div><br>--<br>Aris Feryanto<br></div></div></body></html>