Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
babuhari123
Visitor

How to Handle back button in romatekey

Hi Friends,

How to Handle Back Button in Remote Key In roPosterScreen and also in all screen
0 Kudos
1 REPLY 1
RokuJoel
Binge Watcher

Re: How to Handle back button in romatekey

Generally the isscreenclosed() event is what you need to handle. Here are some bits of code that might be helpful:

else if msg.isscreenclosed() then 
return -1


On roImageCanvas however, you are looking for msg.isRemoteKeyPressed():

if msg.isremotekeypressed() then
ndx=msg.getindex()
if ndx=0 or ndx=2 then
screen.close()
return -1
end if
0 Kudos