Added keybind to download images in gallery viewer
This commit is contained in:
parent
7742edd22c
commit
852f27403b
@ -254,6 +254,8 @@ Gallery =
|
||||
Gallery.cb.rotateLeft
|
||||
when Conf['Rotate image clockwise']
|
||||
Gallery.cb.rotateRight
|
||||
when Conf['Download Gallery Image']
|
||||
Gallery.cb.download
|
||||
|
||||
return unless cb
|
||||
e.stopPropagation()
|
||||
@ -288,6 +290,10 @@ Gallery =
|
||||
blank: (e) -> Gallery.cb.close() if e.target is @
|
||||
toggleSlideshow: -> Gallery.cb[if Gallery.slideshow then 'stop' else 'start']()
|
||||
|
||||
download: ->
|
||||
name = $ '.gal-name'
|
||||
name.click()
|
||||
|
||||
pause: ->
|
||||
Gallery.cb.stop()
|
||||
{current} = Gallery.nodes
|
||||
|
||||
@ -1016,6 +1016,10 @@ Config =
|
||||
'Shift+Left'
|
||||
'Rotate image anticlockwise in gallery.'
|
||||
]
|
||||
'Download Gallery Image': [
|
||||
'Shift+j'
|
||||
'Download current image in gallery.'
|
||||
]
|
||||
'fappeTyme': [
|
||||
'f'
|
||||
'Toggle Fappe Tyme.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user