🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Keyboard shortcut to go to current song (#2029)
Robert Sammelsonb5b01f78dbd3
diff --git a/ui/src/audioplayer/keyHandlers.js b/ui/src/audioplayer/keyHandlers.jsindex 3f697a32f..444ea2c12 100644--- a/ui/src/audioplayer/keyHandlers.js+++ b/ui/src/audioplayer/keyHandlers.js@@ -25,7 +25,9 @@ const keyHandlers = (audioInstance, playerState) => {PREV_SONG: (e) => {if (!e.metaKey && prevSong()) audioInstance && audioInstance.playPrev()},-+ CURRENT_SONG: () => {+ window.location.href = `#/album/${playerState.current?.song.albumId}/show`+ },NEXT_SONG: (e) => {if (!e.metaKey && nextSong()) audioInstance && audioInstance.playNext()},diff --git a/ui/src/hotkeys.js b/ui/src/hotkeys.jsindex 327d4b715..f4e99b287 100644--- a/ui/src/hotkeys.js+++ b/ui/src/hotkeys.js@@ -5,6 +5,7 @@ const keyMap = {TOGGLE_PLAY: { name: 'toggle_play', sequence: 'space', group: 'Player' },PREV_SONG: { name: 'prev_song', sequence: 'left', group: 'Player' },NEXT_SONG: { name: 'next_song', sequence: 'right', group: 'Player' },+ CURRENT_SONG: { name: 'current_song', sequence: 'c', group: 'Player' },VOL_UP: { name: 'vol_up', sequence: '=', group: 'Player' },VOL_DOWN: { name: 'vol_down', sequence: '-', group: 'Player' },...(config.enableFavourites && {diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex cc40dcf99..688729166 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -393,6 +393,7 @@"toggle_play": "Play / Pause","prev_song": "Previous Song","next_song": "Next Song",+ "current_song": "Current Song","vol_up": "Volume Up","vol_down": "Volume Down","toggle_love": "Add this track to favourites"