diff --git a/components/home/Home.xml b/components/home/Home.xml index 6ebb6fa3..e2222d8b 100644 --- a/components/home/Home.xml +++ b/components/home/Home.xml @@ -7,6 +7,7 @@ + diff --git a/components/home/HomeRows.brs b/components/home/HomeRows.brs index b19e8132..ec670d25 100644 --- a/components/home/HomeRows.brs +++ b/components/home/HomeRows.brs @@ -306,7 +306,17 @@ function itemSelected() end function function onKeyEvent(key as string, press as boolean) as boolean - return false + handled = false + if press then + if key = "play" then + itemToPlay = m.top.content.getChild(m.top.rowItemFocused[0]).getChild(m.top.rowItemFocused[1]) + if itemToPlay <> invalid and (itemToPlay.type = "Movie" or itemToPlay.type = "Episode") then + m.top.quickPlayNode = itemToPlay + end if + handled = true + end if + end if + return handled end function function filterNodeArray(nodeArray as object, nodeKey as string, excludeArray as object) as object diff --git a/components/home/HomeRows.xml b/components/home/HomeRows.xml index 7bbf565f..8b7f1ddc 100644 --- a/components/home/HomeRows.xml +++ b/components/home/HomeRows.xml @@ -3,6 +3,7 @@ +