Author Topic: ENTER on a text box closes the dialog  (Read 288 times)

Rakesh Rao

  • Member
  • *
  • Posts: 8
ENTER on a text box closes the dialog
« on: April 12, 2021, 07:40:38 AM »

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

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3048
    • Outside The Box
Re: ENTER on a text box closes the dialog
« Reply #1 on: April 12, 2021, 10:47:27 AM »
I recall that Fred Tomke posted a solution for this in the past, but I didn't find it in a quick search.

roy_043

  • Sr. Member
  • ****
  • Posts: 378

Rakesh Rao

  • Member
  • *
  • Posts: 8
Re: ENTER on a text box closes the dialog
« Reply #3 on: April 12, 2021, 07:21:05 PM »
Thank you guys. Will try this out.