Default button

I have a dialog form (I don’t use the dialog plugin because it is not web compatible) with 3 buttons is it possible make one of the the default button?

That means having the Enter key trigger the script in the onAction property.

thanks for any help.

Irene

Without testing this I would say the only way is to use element.buttonName.requestFocus() so that the button has the focus.
At the moment there are no properties to make a button the default on a form.

Hope this helps.

Nop, doesn’t work.

The button gets a lovely blue color but the Enter key doesn’t work.

May be a good idea for the next version?

Thank you anyway.