Signed-off-by: marco.tngl.sh dev@marco.social
+2
appview/pages/templates/repo/pulls/fragments/pullNewComment.html
+2
appview/pages/templates/repo/pulls/fragments/pullNewComment.html
···
5
5
{{ template "user/fragments/picHandleLink" .LoggedInUser.Did }}
6
6
<form
7
7
hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .RoundNumber }}/comment"
8
+
hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:#pull-comment-textarea"
8
9
hx-swap="none"
9
10
hx-on::after-request="if(event.detail.successful) this.reset()"
10
11
hx-disabled-elt="#reply-{{ .RoundNumber }}"
11
12
class="w-full flex flex-wrap gap-2 group"
12
13
>
13
14
<textarea
15
+
id="pull-comment-textarea"
14
16
name="body"
15
17
class="w-full p-2 rounded border"
16
18
rows=8
History
2 rounds
1 comment
marco.tngl.sh
submitted
#1
1 commit
expand
collapse
appview/pulls: add submit shortcut
Signed-off-by: marco.tngl.sh <dev@marco.social>
expand 0 comments
pull request successfully merged
marco.tngl.sh
submitted
#0
1 commit
expand
collapse
appview/pulls: add submit shortcut
Signed-off-by: marco.tngl.sh <dev@marco.social>
lgtm! thanks for working on this!