From 034c485990f63629fa3514b834a788e40abcd3ba Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 31 Oct 2023 15:26:54 -0400 Subject: [PATCH] use child count to track state of search results --- components/search/SearchResults.brs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/search/SearchResults.brs b/components/search/SearchResults.brs index cebeff1e5..42683e26f 100644 --- a/components/search/SearchResults.brs +++ b/components/search/SearchResults.brs @@ -57,7 +57,7 @@ function onKeyEvent(key as string, press as boolean) as boolean if key = "left" and m.searchSelect.isinFocusChain() m.searchAlphabox.setFocus(true) return true - else if key = "right" and m.searchSelect.itemdata <> invalid and m.searchSelect.itemdata.TotalRecordCount > 0 + else if key = "right" and m.searchSelect.content <> 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