# Event Handler Momentary Button

**URL:** <https://forum.inductiveautomation.com/t/event-handler-momentary-button/3731>\
**Category:** Ignition\
**Created:** [December 11, 2011, 10:05pm UTC](https://forum.inductiveautomation.com/t/event-handler-momentary-button/3731 "2011-12-11T22:05:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [December 11, 2011, 10:05pm UTC](https://forum.inductiveautomation.com/t/event-handler-momentary-button/3731/1 "2011-12-11T22:05:33Z")

</div>

Noticed that if you deleted a script in the “MouseEntered” event (momentary button) and pressed the apply button, the “MousEentered” remains bold blue. Same true even after you committed and saved the project. The other events ( mouseexited, and mousepressed ) are deselected when the script is deleted and the apply button is pressed. Randomly tried other buttons and it works ok. Version 7.3.3-beta2 (b543)

Tired to dynamically change the border with “MouseEntered” but it didn’t work. Don’t know if this is possible or not.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [December 13, 2011, 12:17am UTC](https://forum.inductiveautomation.com/t/event-handler-momentary-button/3731/2 "2011-12-13T00:17:28Z")

</div>

I bet if you go into the binding there is some white space left over on the Script Editor tab. If you remove all whitespace (through Ctrl-A) the bold will go away.

---

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [December 13, 2011, 2:55am UTC](https://forum.inductiveautomation.com/t/event-handler-momentary-button/3731/3 "2011-12-13T02:55:39Z")

</div>

Yep, bingo!
