# Default Button for Cancel Button

**URL:** <https://forum.inductiveautomation.com/t/default-button-for-cancel-button/100703>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [January 10, 2025, 8:44am UTC](https://forum.inductiveautomation.com/t/default-button-for-cancel-button/100703 "2025-01-10T08:44:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phat\_Truc](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Phat\_Truc](https://forum.inductiveautomation.com/u/Phat_Truc)\
**Post date:** [January 10, 2025, 8:44am UTC](https://forum.inductiveautomation.com/t/default-button-for-cancel-button/100703/1 "2025-01-10T08:44:22Z")

</div>

I've been designing a window, with 2 buttons: OK and Cancel. The OK Button is configured as Default Button for the users to be able to press Enter to confirm. The problem is in 1 window, there's only 1 Default Button configured. I want to set up Cancel Button as Default Button "Esc" instead of "Enter". If having any ideas about this, please propose and we can discuss about it. 😃

---

<div class="post-metadata">

**Author:** ![Fran\_Dujmovic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/fran_dujmovic/32/70280_2.png) [@Fran\_Dujmovic](https://forum.inductiveautomation.com/u/Fran_Dujmovic)\
**Post date:** [January 10, 2025, 9:03am UTC](https://forum.inductiveautomation.com/t/default-button-for-cancel-button/100703/2 "2025-01-10T09:03:11Z")

</div>

You might want to take a look at this post:

> [@Closing a vision popup by pressing Esc](https://forum.inductiveautomation.com/t/closing-a-vision-popup-by-pressing-esc/26573):
>
> Hi, How can I close a custom popup window by pressing Esc ? On Buttons there is a property “Default Button” making it respond to an Enter pressed on the window, but how can I do a similar behavior with a cancel or close button when pressing Esc ? Thanks for the help

---

<div class="post-metadata">

**Author:** ![Phat\_Truc](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Phat\_Truc](https://forum.inductiveautomation.com/u/Phat_Truc)\
**Post date:** [January 10, 2025, 9:12am UTC](https://forum.inductiveautomation.com/t/default-button-for-cancel-button/100703/3 "2025-01-10T09:12:04Z")

</div>

Thanks very much.
