# LGTV Remote Controller Exit Button Behavior

**URL:** <https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272>\
**Category:** Web App Development\
**Created:** [August 26, 2024, 5:37am UTC](https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272 "2024-08-26T05:37:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1842](https://avatars.discourse-cdn.com/v4/letter/u/f17d59/32.png) [@user1842](https://forum.webostv.developer.lge.com/u/user1842)\
**Post date:** [August 26, 2024, 5:37am UTC](https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272/1 "2024-08-26T05:37:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [August 26, 2024, 5:49am UTC](https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272/2 "2024-08-26T05:49:12Z")

</div>

Please refer to [Implementing the back button function to exit the app](https://webostv.developer.lge.com/develop/guides/back-button#implementing-the-back-button-function-to-exit-the-app). Thank you.

---

<div class="post-metadata">

**Author:** ![user1842](https://avatars.discourse-cdn.com/v4/letter/u/f17d59/32.png) [@user1842](https://forum.webostv.developer.lge.com/u/user1842)\
**Post date:** [August 26, 2024, 7:33am UTC](https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272/3 "2024-08-26T07:33:28Z")

</div>

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)

 ![IMG_6717](https://canada1.discourse-cdn.com/flex030/uploads/webostv/original/1X/6246493d467ed9ceeb57e404586993b839e26a10.jpeg)

I would be grateful for your assistance on this matter

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [August 27, 2024, 12:16am UTC](https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272/4 "2024-08-27T00:16:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![user1842](https://avatars.discourse-cdn.com/v4/letter/u/f17d59/32.png) [@user1842](https://forum.webostv.developer.lge.com/u/user1842)\
**Post date:** [August 28, 2024, 9:11am UTC](https://forum.webostv.developer.lge.com/t/lgtv-remote-controller-exit-button-behavior/9272/5 "2024-08-28T09:11:24Z")

</div>

Thanks! it helps a lot
