Default Button
A window of type DIALOG can contain a button with the extension ".default". If the user presses the ENTER key while the dialog window has focus, it is the same as if the button whose extension is "default" is pressed and program execution will continue at the event handler [branchLabel] for that button. In the example below, the program will branch to the [okay] routine when the user presses ENTER.

button #win.default, "Okay",[okay],UL,200,100

open "Test" for dialog as #win

If any button has focus, it acts as the default button in a DIALOG window. If a control other than a button has the focus, the button whose extension is ".default" is the default button, if such a button exists.