diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 476cfb450..0a52ca33c 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -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 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.'