# onEnterKey

**URL:** <https://forum.servoy.com/t/onenterkey/5258>\
**Category:** Classic Servoy\
**Created:** [December 23, 2005, 4:20pm UTC](https://forum.servoy.com/t/onenterkey/5258 "2005-12-23T16:20:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jim](https://forum.servoy.com/u/jim)\
**Post date:** [December 23, 2005, 4:20pm UTC](https://forum.servoy.com/t/onenterkey/5258/1 "2005-12-23T16:20:39Z")

</div>

Is there something like “onEnterKey” as a form property? I mean, a way to accomplish the same thing.

I have a find screen in a form-in-dialog (with global fields), and keep wanting to hit the Enter key instead of the Continue button I put on the form. If I do onRecordSave, then the find executes if the Enter key is pressed… but also if someone just clicks outside the fields. Ideally, the find executes if the Continue button is pressed (property of button) or if the Enter key is pressed (property of form), and not otherwise.

Thanks,

Jim Schliestett

---

<div class="post-metadata">

**Author:** ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)\
**Post date:** [December 23, 2005, 8:43pm UTC](https://forum.servoy.com/t/onenterkey/5258/2 "2005-12-23T20:43:34Z")

</div>

Hi Jim,

Why not also put the method which is attached to the continue button as as onAction event for each of the global fields in the FID ?

Yuletide Felicitations !  
Harry

---

<div class="post-metadata">

**Author:** ![jim](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jim](https://forum.servoy.com/u/jim)\
**Post date:** [December 23, 2005, 9:20pm UTC](https://forum.servoy.com/t/onenterkey/5258/3 "2005-12-23T21:20:14Z")

</div>

Thanks Harry!

![:oops:]( "Embarassed") did not know onAction behaved that way in a find ![:oops:]( "Embarassed")

Merry Xmas, and Ho-cubed!

Jim
