nextcloud/cookbook

Jump to new ingredient when pressing Enter/Return in ingredient text box

Opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
When typing in a new recipe (e.g. copying it from a paper medium), inserting multiple ingredients is tedious: typing in one -> use mouse or 4-5 tabs to add a new ingredient line -> select that -> repeat.

Describe the solution you'd like
When pressing Return/Enter in an ingredient field, add a new ingredient field below or at the end AND set it to focus to simplify creating new ingredients.

That may also be implemented to the tools text boxes.
And maybe to the instruction text boxes as well, however as those accept new lines, this feature should may only be triggered e.g. when pressing return twice or by using CTRL+Return to avoid interfering with users wanting to use new lines there etc.

Describe alternatives you've considered
One can currently "abuse" the feature from #379 (#325) by typing all ingredients into a text editor and then copying them all over at once to the recipe. However, a direct integration would still be nicer, more intuitive and IMO should be relative easy to implement (however I sadly have no time and no insight to the code of this project as of now).

This should actually be the current behavior and is a regression. Thanks for reporting!