Keep Roku remote focus on the tuner and guide

This commit is contained in:
Josh
2026-11-13 15:18:09 -05:00
parent 61bff9a6e6
commit 147d5fb925
4 changed files with 23 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ sub initWeather()
for each id in ["weatherLocation", "weatherHeading", "weatherBody", "weatherAlerts", "weatherSource", "weatherRotation", "weatherRefresh", "weatherAudio", "weatherPreviewFrame", "weatherPreviewLabel", "forecastCards"]
m[id] = m.top.FindNode(id)
end for
m.weatherAudio.ObserveField("state", "restoreRemoteFocus")
m.weatherRotation.ObserveField("fire", "rotateWeather")
m.weatherRefresh.ObserveField("fire", "refreshWeather")
end sub
@@ -166,6 +167,7 @@ sub updateWeatherMusic(path as dynamic)
track.streamFormat = "mp3"
m.weatherAudio.content = track
m.weatherAudio.control = "play"
restoreRemoteFocus()
end sub
function showForecastCards(periods as object) as boolean