[Phpmyadmin-devel] grid editing and newlines
Piotr Przybylski
piotr.prz at gmail.com
Fri Nov 11 19:16:30 CET 2011
2011/11/11 Marc Delisle <marc at infomarc.info>:
> Dieter Adriaenssens a écrit :
>> Kind regards,
>> Dieter Adriaenssens.
>> Op 11 nov. 2011 16:00 schreef "Marc Delisle" <marc at infomarc.info
>> <mailto:marc at infomarc.info>> het volgende:
>> >
>> > Hi,
>> > when grid editing a TEXT column, hitting ENTER transmits my change
>> > instead of inserting a new line.
>>
>> It makes sense that in this case a new line is added, but how should the
>> entry be submitted in the database? If I'm not mistaken there is no
>> submit button at the moment.
>
> Dieter,
> by default, $cfg['SaveCellsAtOnce'] is set to false, thus not showing a
> submit button.
>
> When setting it to true, a submit button appears but the field closes as
> soon as ENTER is hit.
>
> If we want to support grid editing + newlines, a possible solution would
> be to ask the user to click outside the input field but it's less efficient.
>
How about ignoring Shift+ENTER for submitting? This way ENTER would
submit form and Shift+ENTER would just insert a newline.
--
Piotr Przybylski
More information about the Developers
mailing list