Make some of the gallery keybinds configurable.
This commit is contained in:
parent
e9802b3458
commit
ff7793bb96
@ -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.'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user