LGTV Remote Controller Exit Button Behavior

Hello, I have a question regarding remote control button functionality while developing a WebOS web app.

I’m trying to display a confirmation popup asking “Are you sure you want to exit?” before the app closes. I’ve successfully implemented this for the Back button, but I’m having trouble with the Exit button on my remote control (model: AKB76040301).

When the Exit button is pressed, I’d like to show the same popup. However, the app closes immediately without detecting the keycode, preventing me from displaying the popup. Is there a way to control or intercept this Exit button action separately?

Thank you for your help.

Please refer to Implementing the back button function to exit the app. Thank you.

I have already read the document you mentioned and applied the instructions regarding the back button.
What I’m currently interested in is how to prevent the exit button behavior on the remote control like model AKB76040301. (attach photo)

I would be grateful for your assistance on this matter

The Exit button exits the app from the platform (device), so no events are delivered to the app. There is no way to prevent this behavior or use the button for other actions. Thank you.

1 Like

Thanks! it helps a lot