Browse Source

space bar as click

pull/1933/head
Unknwon 9 years ago
parent
commit
020fb43b77
  1. 2
      public/js/gogs.js

2
public/js/gogs.js

@ -541,7 +541,7 @@ function initAdmin() {
function buttonsClickOnEnter() { function buttonsClickOnEnter() {
$('.ui.button').keypress(function(e){ $('.ui.button').keypress(function(e){
if (e.keyCode == 13) if (e.keyCode == 13 || e.keyCode == 32) // enter key or space bar
$(this).click(); $(this).click();
}); });
} }

Loading…
Cancel
Save