From 020fb43b775eff2cf60360be61554124d9b1b9dc Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Wed, 11 Nov 2015 18:44:39 -0500
Subject: [PATCH] space bar as click

---
 public/js/gogs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
     });
 }