Page 1 of 1

default button for a form

PostPosted: Mon Feb 15, 2010 4:47 pm
by lesouef
Assign a button to be the default button of a form, or be able to assign [return] as the mnemonic.
Application: login, passwd, enter > nothing happens: while the web standards have established strong habits...

Re: default button for a form

PostPosted: Mon Feb 15, 2010 5:11 pm
by Harjo
place the same method you have on the button, to the onAction of the login & password field.

this way you have even better control, on which fields you want to fire which method..

Re: default button for a form

PostPosted: Mon Feb 15, 2010 6:10 pm
by lesouef
yes, good workaround, I thought tab would also trigger "onAction" but it does not.
however, setting return as mnemonic would be far quicker then setting all fields with [return] method.