🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Do not trigger next/prev event handlers when Cmd (meta) is pressed
Deluan4b373560c676
diff --git a/ui/src/audioplayer/Player.js b/ui/src/audioplayer/Player.jsindex 76ef3f807..f0dcd508d 100644--- a/ui/src/audioplayer/Player.js+++ b/ui/src/audioplayer/Player.js@@ -93,12 +93,18 @@ const Player = () => {(audioInstance.volume = Math.min(1, audioInstance.volume + 0.1)),VOL_DOWN: () =>(audioInstance.volume = Math.max(0, audioInstance.volume - 0.1)),- PREV_SONG: useCallback(() => {- if (prevSong()) audioInstance && audioInstance.playPrev()- }, [prevSong]),- NEXT_SONG: useCallback(() => {- if (nextSong()) audioInstance && audioInstance.playNext()- }, [nextSong]),+ PREV_SONG: useCallback(+ (e) => {+ if (!e.metaKey && prevSong()) audioInstance && audioInstance.playPrev()+ },+ [prevSong]+ ),+ NEXT_SONG: useCallback(+ (e) => {+ if (!e.metaKey && nextSong()) audioInstance && audioInstance.playNext()+ },+ [nextSong]+ ),}const defaultOptions = {