Make some of the gallery keybinds configurable.

This commit is contained in:
ccd0 2014-11-22 19:16:22 -08:00
parent e9802b3458
commit ff7793bb96
2 changed files with 12 additions and 4 deletions

View File

@ -658,7 +658,7 @@ vp-replace
]
'Close': [
'Esc'
'Close Settings, Notifications or QR.'
'Close Settings/Notifications/QR/Gallery.'
]
'Spoiler tags': [
'Ctrl+s'
@ -706,6 +706,14 @@ vp-replace
'g'
'Opens the gallery.'
]
'Pause': [
'p'
'Pause/play videos in the gallery.'
]
'Slideshow': [
's'
'Toggle the gallery slideshow mode.'
]
'fappeTyme': [
'f'
'Toggle Fappe Tyme.'

View File

@ -201,7 +201,7 @@ Gallery =
return unless key = Keybinds.keyCode e
cb = switch key
when 'Esc', Conf['Open Gallery']
when Conf['Close'], Conf['Open Gallery']
Gallery.cb.close
when 'Right'
Gallery.cb.next
@ -209,9 +209,9 @@ Gallery =
Gallery.cb.enterKey
when 'Left', ''
Gallery.cb.prev
when 'p'
when Conf['Pause']
Gallery.cb.pause
when 's'
when Conf['Slideshow']
Gallery.cb.toggleSlideshow
return unless cb