Preventing pressure Enter key

Started by Emiliano · 2015-06-02 08:47 UTC · 2 replies · SMF topic #2279

Hello,
I made a Modeless Dialog.
Unfortunately when the user presses Enter (eg. After filling in a textbox) the dialog box is closed.
I would avoid this and force the user to press the "X" or the button "Close" placed on the form.

I have noticed that this happens only when the focus is on a TextBox

How can I do this?
You need to handle the {2} event. There is a {2}.
author=owenwengerd link=topic=2279.msg11471#msg11471 date=1433250443 wrote:
You need to handle the {2} event. There is a {2}.


thanks!!