mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2025-02-24 17:01:03 +00:00
add quickplay support to search results
This commit is contained in:
parent
dded75f307
commit
8c0fc20ece
@ -60,6 +60,12 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
||||
else if key = "right"
|
||||
m.searchSelect.setFocus(true)
|
||||
return true
|
||||
else if key = "play"
|
||||
print "play was pressed from search results"
|
||||
if m.searchSelect.rowItemFocused <> invalid
|
||||
m.top.quickPlayNode = m.searchSelect.content.getChild(m.searchSelect.rowItemFocused[0]).getChild(m.searchSelect.rowItemFocused[1])
|
||||
return true
|
||||
end if
|
||||
end if
|
||||
return false
|
||||
|
||||
|
@ -855,6 +855,7 @@ end function
|
||||
function CreateSearchPage()
|
||||
' Search + Results Page
|
||||
group = CreateObject("roSGNode", "searchResults")
|
||||
group.observeField("quickPlayNode", m.port)
|
||||
options = group.findNode("searchSelect")
|
||||
options.observeField("itemSelected", m.port)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user