only quickplay on search page if search results are in focus

This commit is contained in:
Charles Ewert 2023-10-31 15:08:03 -04:00
parent c0f2b7fc0a
commit bd9a451601

View File

@ -60,7 +60,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
else if key = "right" and m.searchSelect.itemdata <> invalid and m.searchSelect.itemdata.TotalRecordCount > 0
m.searchSelect.setFocus(true)
return true
else if key = "play" and m.searchSelect.rowItemFocused.count() > 0
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 <> invalid
m.top.quickPlayNode = m.searchSelect.content.getChild(m.searchSelect.rowItemFocused[0]).getChild(m.searchSelect.rowItemFocused[1])