kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fix clearing queue with shortcut
rodzic
d90f41ec51
commit
247abbcfea
|
@ -39,7 +39,8 @@ const {
|
||||||
currentIndex,
|
currentIndex,
|
||||||
currentTrack,
|
currentTrack,
|
||||||
isShuffled,
|
isShuffled,
|
||||||
shuffle
|
shuffle,
|
||||||
|
clear
|
||||||
} = useQueue()
|
} = useQueue()
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
@ -53,7 +54,7 @@ const toggleMobilePlayer = () => {
|
||||||
onKeyboardShortcut('e', toggleMobilePlayer)
|
onKeyboardShortcut('e', toggleMobilePlayer)
|
||||||
onKeyboardShortcut('p', () => { isPlaying.value = !isPlaying.value })
|
onKeyboardShortcut('p', () => { isPlaying.value = !isPlaying.value })
|
||||||
onKeyboardShortcut('s', shuffle)
|
onKeyboardShortcut('s', shuffle)
|
||||||
onKeyboardShortcut('q', () => store.dispatch('queue/clean'))
|
onKeyboardShortcut('q', clear)
|
||||||
onKeyboardShortcut('m', mute)
|
onKeyboardShortcut('m', mute)
|
||||||
onKeyboardShortcut('l', toggleLooping)
|
onKeyboardShortcut('l', toggleLooping)
|
||||||
onKeyboardShortcut('f', () => store.dispatch('favorites/toggle', currentTrack.value?.id))
|
onKeyboardShortcut('f', () => store.dispatch('favorites/toggle', currentTrack.value?.id))
|
||||||
|
|
Ładowanie…
Reference in New Issue