diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 9f251314d..2867ddaed 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -264,6 +264,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() @@ -298,6 +300,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 diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 41093dc1a..6f89a2f2d 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -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.'