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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.