Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/replyComment: add submit shortcut

Signed-off-by: marco.tngl.sh <dev@marco.social>

authored by

marco.tngl.sh and committed by tangled.org 43c02a0b 3aa55530

+2 -5
+2 -5
appview/pages/templates/repo/issues/fragments/replyComment.html
··· 3 3 class="p-2 group w-full border-t border-gray-200 dark:border-gray-700 flex flex-col gap-2" 4 4 id="reply-form-{{ .Comment.Id }}" 5 5 hx-post="/{{ .RepoInfo.FullName }}/issues/{{ .Issue.IssueId }}/comment" 6 + hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:#reply-{{.Comment.Id}}-textarea" 6 7 hx-on::after-request="if(event.detail.successful) this.reset()" 7 8 hx-disabled-elt="#reply-{{ .Comment.Id }}" 8 9 > ··· 14 13 class="w-full p-2" 15 14 placeholder="Leave a reply..." 16 15 autofocus 17 - rows="3" 18 - hx-trigger="keydown[ctrlKey&&key=='Enter']" 19 - hx-target="#reply-form-{{ .Comment.Id }}" 20 - hx-get="#" 21 - hx-on:htmx:before-request="event.preventDefault(); document.getElementById('reply-form-{{ .Comment.Id }}').requestSubmit()"></textarea> 16 + rows="3"></textarea> 22 17 23 18 <input 24 19 type="text"