]> source.dussan.org Git - gitea.git/commit
Ctrl + Enter to submit forms (#2540)
authorJonas Franz <info@jonasfranz.software>
Fri, 22 Sep 2017 06:17:31 +0000 (08:17 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Fri, 22 Sep 2017 06:17:31 +0000 (14:17 +0800)
commitb4b0280e339767ae13ea994cee877a666255e65d
tree19980862d39c2c7d338d5089be4bc65c99a8c9dd
parent1be2b4a262ebb4713111f496b9dd4c106089fafe
Ctrl + Enter to submit forms (#2540)

* Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Submit forms if Ctrl+Enter is pressed inside a textarea

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Adding separate class for Ctrl+Enter-Submit
Checking if alt key is pressed too

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Changing .ctrlenter to .js-quick-submit

Signed-off-by: Jonas Franz <info@jonasfranz.software>
public/js/index.js
templates/repo/issue/comment_tab.tmpl