mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-26 15:37:40 +00:00
space bar as click
This commit is contained in:
parent
675cd997d8
commit
020fb43b77
@ -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…
Reference in New Issue
Block a user