-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable enter to go to next instructions step #890
Enable enter to go to next instructions step #890
Conversation
Actually this is not an oversight. What if you wanted to have a line break within your instruction? If we decide to jump to the next line by pressing enter for consistency, we should at least provide a possibility (e.g., shift+enter) to insert line breaks. |
Hi @seyfeb. Thanks for reviewing this. I thought of that as well. Maybe we could have one modifier key to insert a newline and another modifier to go to the previous textfield. Or maybe enter alone would be newline, ctrl+enter would be next textfield, and shift+enter would be previous textfield. What do you think? |
I’m not sure if I have seen such a thing anywhere, but is it a common UI pattern to have "Return/Enter" jump to the previous item? Or are you suggesting that the (modifier+)enter action should insert a new empty field above the current field? |
I was suggesting to jump to the previous field, not create a new one. I guess you are right, I have only seen this with tab / shift+tab. |
Thinking about this I find the idea to have a possibility to insert a new field above or below the current field with shortcuts also interesting... This should however become a separate issue and be discussed there. I see two lines of reasoning:
@christianlupus any thoughts on this? |
I would use the same UX as with the tools and ingredients: simple enter switches to next row or spend one. Shift plus enter adds a meeting into the text area. The inserting of intermediate steps is too be discussed in a separate issue in my opinion. |
Let’s go with that way then: Enter to go to the next item as for ingredients. For inserting a newline I would suggest shift+enter as I have seen this in multiple messengers, so it seems to be a common (and therefore somewhat expected) behavior |
aa367dc
to
8018247
Compare
When enter is pressed in EditInputGroup, there is an attempt to select the next input field. This works for ingredients, which use inputs, but not for instructions, which use textareas. Signed-off-by: Marcel Robitaille <marcelrobitaille11@gmail.com> Signed-off-by: Christian Wolf <github@christianwolf.email>
8018247
to
28cde0f
Compare
I force-pushed this branch to fix the DCO check. @MarcelRobitaille you need to rebase your local development accordinlgy. |
Codecov Report
@@ Coverage Diff @@
## master #890 +/- ##
=======================================
Coverage 21.22% 21.22%
=======================================
Files 20 20
Lines 1555 1555
=======================================
Hits 330 330
Misses 1225 1225
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Christian Wolf <github@christianwolf.email>
This is a fix for #882.
When enter is pressed in
EditInputGroup
, there is an attempt to select the next input field. This works for ingredients, which use inputs, but not for instructions, which usetextareas
. Now, both are searched for usingquerySelector
.