]> source.dussan.org Git - gitea.git/commitdiff
space bar as click
authorUnknwon <u@gogs.io>
Wed, 11 Nov 2015 23:44:39 +0000 (18:44 -0500)
committerUnknwon <u@gogs.io>
Wed, 11 Nov 2015 23:44:39 +0000 (18:44 -0500)
public/js/gogs.js

index 68e286bc8cb3589e320cfa9a6c686b7bea80bab8..f3aed276de0d2f6b044ed2b284b4c81d99020209 100644 (file)
@@ -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();
     });
 }