# Return keystroke no longer triggers OnDataChange method

**URL:** <https://forum.servoy.com/t/return-keystroke-no-longer-triggers-ondatachange-method/12784>\
**Category:** Classic Servoy\
**Created:** [August 31, 2010, 8:00pm UTC](https://forum.servoy.com/t/return-keystroke-no-longer-triggers-ondatachange-method/12784 "2010-08-31T20:00:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmcneely](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jmcneely](https://forum.servoy.com/u/jmcneely)\
**Post date:** [August 31, 2010, 8:00pm UTC](https://forum.servoy.com/t/return-keystroke-no-longer-triggers-ondatachange-method/12784/1 "2010-08-31T20:00:56Z")

</div>

Under 5.1.4, I had some search variables that were set to fire a method via OnDataChange, which would fire off when someone typed something and hit return or enter in a TEXT\_FIELD. Now, it just sits there if you hit a return or enter keystroke, but if you click the mouse elsewhere on the form, it recognizes the data change and fires the script. Any idea what the problem might be? Perhaps the version change is a red herring and I’ve inadvertently changed something. However, this seems to be the new behavior across the board.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [August 31, 2010, 9:38pm UTC](https://forum.servoy.com/t/return-keystroke-no-longer-triggers-ondatachange-method/12784/2 "2010-08-31T21:38:16Z")

</div>

working fine here on 5.2.1

is this windows? or Mac?

---

<div class="post-metadata">

**Author:** ![jmcneely](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jmcneely](https://forum.servoy.com/u/jmcneely)\
**Post date:** [September 1, 2010, 1:37pm UTC](https://forum.servoy.com/t/return-keystroke-no-longer-triggers-ondatachange-method/12784/3 "2010-09-01T13:37:19Z")

</div>

Forgot to say - it’s a Mac environment.
