-
Notifications
You must be signed in to change notification settings - Fork 58
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
Proposal: add a new default block (para) when tapping Enter on Image caption #426
Comments
Possibly a duplicate of #324 |
Looking at WordPress/gutenberg#2173 and WordPress/gutenberg#2664 I'm not sure that behavior on the web is intentional, but they postponed the fix and it never happened. |
nice catch ! |
Any update or conclusion on this? I'm working on adding styling to the image caption, and I'm going to need to do some custom work to get the Enter key working, so I would like to implement it so it has our preferred behavior. Now I just need to figure out what that is! 😄 |
👋 @mchowning , even though I personally like the proposal in this ticket, I think that for the time being, mirroring what the web side does is a good compromise. So, when tapping Enter while in the caption, the focus should stay in the caption in a new line inside it. Do you think that might be problematic perhaps? |
@mchowning I'm thinking on closing this issue, because it reflects the behaviour on the web. What do you think? |
It seems like we still want a change along these lines according to @hypest 's comment above and @iamthomasbishop 's more recent comment about this. With that said, this issue has been open for well over a year now with virtually no movement toward actually implementing it. I'm not sure how to best handle old issues like this that seem to be very low priority. As much as I would like to close this in order to clean up our issues list, I'm not sure that is the best approach since it seems like it's still a desired improvement. I would lean towards keeping this open myself, but I do not feel strongly about that. |
@mchowning @SergioEstevao I still agree with the sentiment behind the issue (I still expect enter on caption to create a new block, however rare the occurance), and my feelings about keeping open vs. closing (is there a "dormant" status? 😆) are not strong. Considering it is low priority and I'm not aware of any specific user feedback — not to mention it's been dormant for over a year — perhaps we should close it and we can re-open if we end up tackling in the future? |
After this PR: WordPress/gutenberg#22290, the behaviour on the web changed to:
@iamthomasbishop Am I correct to assume that we want in mobile that Enter creates a new paragraph block? |
I think so — it seems that was the original proposal by @mzorz and now web has the desired behavior, so we should match it 😄 |
I labelled this issue
Writing Flow
, because of the following:Imagine I'm writing, hit enter, get a new block, keep writing, all looks good. Decide to insert an image and add a caption. I expect that adding a caption and hitting ENTER gets me a new Paragraph block to keep writing. Instead, it dismisses the keyboard and no new block is added, so I need to figure out what happened for a second and then if I want to keep writing I need to add a block myself.
I think we could try making it add a new default block, to keep the writing flow going.
On the Web, ENTER does not have a special treatment but only adds a new line to the caption:
wdyt?
The text was updated successfully, but these errors were encountered: