Monorepo for Tangled

appview/putIssue: add submit shortcut

Add {ctrl,cmd}+Enter shortcut to submit issues.

See https://tangled.org/tangled.org/core/issues/412

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

authored by

marco.tngl.sh and committed by tangled.org 3ca87ebe d0acfc93

+1
+1
appview/pages/templates/repo/issues/fragments/putIssue.html
··· 6 {{ else }} 7 hx-post="/{{ .RepoInfo.FullName }}/issues/new" 8 {{ end }} 9 hx-swap="none" 10 hx-indicator="#spinner"> 11 <div class="flex flex-col gap-2">
··· 6 {{ else }} 7 hx-post="/{{ .RepoInfo.FullName }}/issues/new" 8 {{ end }} 9 + hx-trigger="submit, keydown[(ctrlKey || metaKey) && key=='Enter'] from:(#title,#body)" 10 hx-swap="none" 11 hx-indicator="#spinner"> 12 <div class="flex flex-col gap-2">