Merge remote-tracking branch 'jakem72360/download-keybind'

This commit is contained in:
ccd0 2021-01-13 22:36:53 -08:00
commit 690d532d52
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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.'