I don't know if
this thread is similar to what you're seeing or not, but I used this code to eat the unexpected Back button that was waiting in the queue:
' eat possible Back button
msg = wait(100,port)
if type(msg) = "roImageCanvasEvent" then
if msg.isRemoteKeyPressed() then
print "Key Pressed - " ; msg.GetIndex()
end if
end if
Perhaps you could do something similar. Some sort of flush for the event queue might not be a bad addition to the SDK.
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.