Selaa lähdekoodia

space bar as click

Unknwon 9 vuotta sitten
vanhempi
commit
020fb43b77
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      public/js/gogs.js

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