Fix space hotkey

This commit is contained in:
Deluan
2021-02-05 13:10:58 -05:00
parent 4b373560c6
commit bc609be3c9
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -88,7 +88,10 @@ const Player = () => {
}, [queue])
const keyHandlers = {
TOGGLE_PLAY: () => audioInstance && audioInstance.togglePlay(),
TOGGLE_PLAY: (e) => {
e.preventDefault()
audioInstance && audioInstance.togglePlay()
},
VOL_UP: () =>
(audioInstance.volume = Math.min(1, audioInstance.volume + 0.1)),
VOL_DOWN: () =>