Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

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
Roku Employee
Roku Employee

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
if ndx=0 or ndx=2 then
return -1
end if
0 Kudos