-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Feature Request] Add "Ctrl+Enter" posting of messages for all textareas #14843
Comments
It would be seriously helpful if you could list the URLs that don't have ctrl-enter submits - and even better some way of identifying these forms either their class Id etc. That would help immensely in tracking down which ones are missing the feature and why |
List of textareas known to be missing that feature (feel free to add any I missed):
Also, since most likely new and edit always use the same template, anything mentioned for new should also be present for the edit version and vice versa. I'm noticing a bit of a pattern here… Textareas I found where currently "Ctrl+Enter" works erroneously:
|
using gitea 1.66.6, Ctrl+Enter doesn't work with Issue creation, as well as, Repo Project creation(kanban) and Project Board creation. |
The reason is that the PR #2540 only attach an event handler to existed elements, while some elements are created dynamically. A quick fix is to use |
See: More details about
|
I think this issue could be closed by Fix issue/PR title edit #30858 |
1. "enter" doesn't work (I think it is the last enter support for #14843) 2. if a branch name contains something like `&`, then the branch selector doesn't update
1. "enter" doesn't work (I think it is the last enter support for go-gitea#14843) 2. if a branch name contains something like `&`, then the branch selector doesn't update
I think this issue could be closed now. These listed textarea/input[text] should have Ctrl+Enter/Enter support now. If anything is missing, I will propose following fixes. |
Description
Currently, Gitea supports "posting" text entered into a textarea using "Ctrl+Enter" for some text areas.
However, it appears pretty random which text areas do support it and which don't.
For example, adding a comment to a PR review cannot be posted using Ctrl+Enter.
Creating an issue can in contrast be posted using Ctrl+Enter, both for the title as well as for the description.
It would be nice if users didn't have to guess whether they can press Ctrl+Enter or not.
One textarea must make a decision before posting:
The textarea where you add the first comment on a PR and can choose either
Start review
oradd single comment
should automatically count as start review as a singly posted comment is most often unnecessary.All textareas for further comments should simply add the comments to the queue submitted when submitting the PR review.
One textarea will need special treatment (could, if requested, also be a separate issue):
The "Submit review - comment" textarea where you can approve, comment or request changes for a PR currently throws an error when posting using Ctrl+Enter because no type has been given.
I'd argue that if no comments were made, the PR should automatically be counted as approved,
else it should be counted as (opinions will differ here)
comment
or aschanges requested
(I personally am forchanges requested
because I'd say we can assume that if someone made a comment on a PR, it should be counted as a requested change)The text was updated successfully, but these errors were encountered: