From cc7236e852e60e4dc9c4fb5692ac62697ef0e9e3 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 20 May 2022 10:26:04 +0800 Subject: Make Ctrl+Enter (quick submit) work for issue comment and wiki editor (#19729) * Make Ctrl+Enter (quick submit) work for issue comment and wiki editor * Remove the required `SubmitReviewForm.Type`, empty type (triggered by quick submit) means "comment" * Merge duplicate code --- templates/repo/diff/box.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 2 +- templates/user/settings/keys_ssh.tmpl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 02c7dcd68a..a70532eca9 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -180,7 +180,7 @@ {{$.i18n.Tr "preview"}}
- +
{{$.i18n.Tr "loading"}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 8d4fc4f8b3..52353d46d9 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -202,7 +202,7 @@
- +
{{$.i18n.Tr "loading"}} diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index 077e40e015..699905ebe2 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -20,7 +20,7 @@
- +
- +