Use middle mouse click to open list row in new window (#4917)

This commit is contained in:
Samuell 2020-01-29 20:31:19 +01:00 committed by GitHub
parent 5e7ae1bb72
commit a593ceffda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -62,8 +62,12 @@
}
}
$(this).not('.' + options.excludeClass).find('td').not('.' + options.excludeClass).click(function(e) {
$(this).not('.' + options.excludeClass).find('td').not('.' + options.excludeClass).click(function (e) {
handleClick(e)
}).mousedown(function (e) {
if (e.which == 2) {
window.open(href)
}
})
$(this).not('.' + options.excludeClass).on('keypress', function(e) {

View File

@ -4074,7 +4074,7 @@ else if(request){link.request()}
else if(popup){link.popup()}
else if(e.ctrlKey||e.metaKey){window.open(href)}
else{window.location=href}}
$(this).not('.'+options.excludeClass).find('td').not('.'+options.excludeClass).click(function(e){handleClick(e)})
$(this).not('.'+options.excludeClass).find('td').not('.'+options.excludeClass).click(function(e){handleClick(e)}).mousedown(function(e){if(e.which==2){window.open(href)}})
$(this).not('.'+options.excludeClass).on('keypress',function(e){if(e.key==='(Space character)'||e.key==='Spacebar'||e.key===' '){handleClick(e)
return false}})
$(this).addClass(options.linkedClass)