Keep Roku remote focus on the tuner and guide
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user