mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	space bar as click
This commit is contained in:
		@@ -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();
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user