summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-11 18:44:39 -0500
committerUnknwon <u@gogs.io>2015-11-11 18:44:39 -0500
commit020fb43b775eff2cf60360be61554124d9b1b9dc (patch)
treebd183125abe471419ae2fc953705d5c4f6f04721
parent675cd997d8b8afe35c642dc35defde36a3ed38e1 (diff)
downloadgitea-020fb43b775eff2cf60360be61554124d9b1b9dc.tar.gz
gitea-020fb43b775eff2cf60360be61554124d9b1b9dc.zip
space bar as click
-rw-r--r--public/js/gogs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 68e286bc8c..f3aed276de 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -541,7 +541,7 @@ function initAdmin() {
function buttonsClickOnEnter() {
$('.ui.button').keypress(function(e){
- if (e.keyCode == 13)
+ if (e.keyCode == 13 || e.keyCode == 32) // enter key or space bar
$(this).click();
});
}