[chrome] let middle clicks open img in tab
This commit is contained in:
parent
6682b526ab
commit
b84234fdf5
@ -1859,7 +1859,7 @@
|
||||
return _results;
|
||||
},
|
||||
toggle: function(e) {
|
||||
if (e.shiftKey || e.altKey || e.ctrlKey) {
|
||||
if (e.shiftKey || e.altKey || e.ctrlKey || e.button !== 0) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
|
||||
@ -1412,8 +1412,7 @@ imgExpand =
|
||||
$.bind thumb.parentNode, 'click', imgExpand.cb.toggle
|
||||
if imgExpand.on then imgExpand.expand thumb.parentNode
|
||||
toggle: (e) ->
|
||||
#TODO middle click (chrome)
|
||||
return if e.shiftKey or e.altKey or e.ctrlKey
|
||||
return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0
|
||||
e.preventDefault()
|
||||
imgExpand.toggle e.target
|
||||
all: (e) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user