diff --git a/components/music/MusicAlbumDetails.brs b/components/music/MusicAlbumDetails.brs index 33c53d63..1c39b7e0 100644 --- a/components/music/MusicAlbumDetails.brs +++ b/components/music/MusicAlbumDetails.brs @@ -3,6 +3,7 @@ sub init() setupMainNode() m.playAlbum = m.top.findNode("playAlbum") + m.instantMix = m.top.findNode("instantMix") m.albumCover = m.top.findNode("albumCover") m.songList = m.top.findNode("songList") m.infoGroup = m.top.FindNode("infoGroup") @@ -99,11 +100,6 @@ function onKeyEvent(key as string, press as boolean) as boolean if m.spinner.visible then return false - ' Play Album is hidden, so there are no navigation needs here - if m.top.pageContent.json.ChildCount = 1 - return false - end if - if key = "options" if m.dscr.isTextEllipsized createFullDscrDlg() @@ -112,10 +108,24 @@ function onKeyEvent(key as string, press as boolean) as boolean return false end if - if key = "right" and m.playAlbum.hasFocus() - m.songList.setFocus(true) - return true + if key = "right" + if m.playAlbum.hasFocus() or m.instantMix.hasFocus() + m.songList.setFocus(true) + return true + end if else if key = "left" and m.songList.hasFocus() + if m.playAlbum.visible + m.playAlbum.setFocus(true) + else if m.instantMix.visible + m.instantMix.setFocus(true) + else + return false + end if + return true + else if key = "down" and m.playAlbum.hasFocus() + m.instantMix.setFocus(true) + return true + else if key = "up" and m.instantMix.hasFocus() m.playAlbum.setFocus(true) return true end if diff --git a/components/music/MusicAlbumDetails.xml b/components/music/MusicAlbumDetails.xml index 5703dee9..d2ad590a 100644 --- a/components/music/MusicAlbumDetails.xml +++ b/components/music/MusicAlbumDetails.xml @@ -10,6 +10,7 @@