Fix clearing queue with shortcut

environments/review-docs-renov-b1i8ag/deployments/15025
wvffle 2022-10-28 16:35:21 +00:00 zatwierdzone przez Georg Krause
rodzic d90f41ec51
commit 247abbcfea
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2970D504B2183D22
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -39,7 +39,8 @@ const {
currentIndex,
currentTrack,
isShuffled,
shuffle
shuffle,
clear
} = useQueue()
const store = useStore()
@ -53,7 +54,7 @@ const toggleMobilePlayer = () => {
onKeyboardShortcut('e', toggleMobilePlayer)
onKeyboardShortcut('p', () => { isPlaying.value = !isPlaying.value })
onKeyboardShortcut('s', shuffle)
onKeyboardShortcut('q', () => store.dispatch('queue/clean'))
onKeyboardShortcut('q', clear)
onKeyboardShortcut('m', mute)
onKeyboardShortcut('l', toggleLooping)
onKeyboardShortcut('f', () => store.dispatch('favorites/toggle', currentTrack.value?.id))