Make some of the gallery keybinds configurable.
This commit is contained in:
parent
e9802b3458
commit
ff7793bb96
@ -658,7 +658,7 @@ vp-replace
|
|||||||
]
|
]
|
||||||
'Close': [
|
'Close': [
|
||||||
'Esc'
|
'Esc'
|
||||||
'Close Settings, Notifications or QR.'
|
'Close Settings/Notifications/QR/Gallery.'
|
||||||
]
|
]
|
||||||
'Spoiler tags': [
|
'Spoiler tags': [
|
||||||
'Ctrl+s'
|
'Ctrl+s'
|
||||||
@ -706,6 +706,14 @@ vp-replace
|
|||||||
'g'
|
'g'
|
||||||
'Opens the gallery.'
|
'Opens the gallery.'
|
||||||
]
|
]
|
||||||
|
'Pause': [
|
||||||
|
'p'
|
||||||
|
'Pause/play videos in the gallery.'
|
||||||
|
]
|
||||||
|
'Slideshow': [
|
||||||
|
's'
|
||||||
|
'Toggle the gallery slideshow mode.'
|
||||||
|
]
|
||||||
'fappeTyme': [
|
'fappeTyme': [
|
||||||
'f'
|
'f'
|
||||||
'Toggle Fappe Tyme.'
|
'Toggle Fappe Tyme.'
|
||||||
|
|||||||
@ -201,7 +201,7 @@ Gallery =
|
|||||||
return unless key = Keybinds.keyCode e
|
return unless key = Keybinds.keyCode e
|
||||||
|
|
||||||
cb = switch key
|
cb = switch key
|
||||||
when 'Esc', Conf['Open Gallery']
|
when Conf['Close'], Conf['Open Gallery']
|
||||||
Gallery.cb.close
|
Gallery.cb.close
|
||||||
when 'Right'
|
when 'Right'
|
||||||
Gallery.cb.next
|
Gallery.cb.next
|
||||||
@ -209,9 +209,9 @@ Gallery =
|
|||||||
Gallery.cb.enterKey
|
Gallery.cb.enterKey
|
||||||
when 'Left', ''
|
when 'Left', ''
|
||||||
Gallery.cb.prev
|
Gallery.cb.prev
|
||||||
when 'p'
|
when Conf['Pause']
|
||||||
Gallery.cb.pause
|
Gallery.cb.pause
|
||||||
when 's'
|
when Conf['Slideshow']
|
||||||
Gallery.cb.toggleSlideshow
|
Gallery.cb.toggleSlideshow
|
||||||
|
|
||||||
return unless cb
|
return unless cb
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user