Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyfin-bot committed Oct 31, 2023
1 parent 44aac6b commit e4b8366
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
21 changes: 20 additions & 1 deletion docs/api/components_search_SearchResults.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ <h1 class="page-title">Source: components/search/SearchResults.brs</h1>
m.searchSelect.itemdata = m.searchTask.results
m.searchSelect.query = m.top.SearchAlpha
m.searchHelpText.visible = false
if m.searchTask.results.TotalRecordCount = 0
' make sure focus is on the keyboard
if m.searchSelect.isinFocusChain()
m.searchAlphabox.setFocus(true)
end if
return
end if
m.searchAlphabox = m.top.findnode("searchResults")
m.searchAlphabox.translation = "[470, 85]"
end sub
Expand All @@ -129,9 +136,21 @@ <h1 class="page-title">Source: components/search/SearchResults.brs</h1>
if key = "left" and m.searchSelect.isinFocusChain()
m.searchAlphabox.setFocus(true)
return true
else if key = "right"
else if key = "right" and m.searchSelect.content &lt;> invalid and m.searchSelect.content.getChildCount() > 0
m.searchSelect.setFocus(true)
return true
else if key = "play" and m.searchSelect.isinFocusChain() and m.searchSelect.rowItemFocused.count() > 0
print "play was pressed from search results"
if m.searchSelect.rowItemFocused &lt;> invalid
selectedContent = m.searchSelect.content.getChild(m.searchSelect.rowItemFocused[0])
if selectedContent &lt;> invalid
selectedItem = selectedContent.getChild(m.searchSelect.rowItemFocused[1])
if selectedItem &lt;> invalid
m.top.quickPlayNode = selectedItem
return true
end if
end if
end if
end if
return false

Expand Down
2 changes: 1 addition & 1 deletion docs/api/quicksearch.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/api/source_ShowScenes.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@ <h1 class="page-title">Source: source/ShowScenes.brs</h1>
function CreateSearchPage()
' Search + Results Page
group = CreateObject("roSGNode", "searchResults")
group.observeField("quickPlayNode", m.port)
options = group.findNode("searchSelect")
options.observeField("itemSelected", m.port)

Expand Down

0 comments on commit e4b8366

Please sign in to comment.