ENTER on a text box closes the dialog

Started by rakesh_rao · 2021-04-12 14:40 UTC · 3 replies · SMF topic #2770


Dear Support,

I created a modeless dialog and if I enter a value within a text box and hit ENTER, the dialog box closes. If I press the TAB key, it works as expected.

How do I prevent an ENTER from exiting the dialog box.

Best Regards
Rakesh Rao
I recall that Fred Tomke posted a solution for this in the past, but I didn't find it in a quick search.
https://opendcl.com/forum/index.php?topic=1061.0
Thank you guys. Will try this out.