WebButton.Default

From Xojo Documentation

Property (As Boolean )
aWebButton.Default = newBooleanValue
or
BooleanValue = aWebButton.Default

New in 2020r1

Supported for all project types and targets.

If True, the default button indicator is added to the button and the Return and Enter keys will trigger the Pressed event.

Notes

The Default property can only be set to True for a single button each per page at any given moment.

When Default is True, the Indicator property is ignored as Default buttons have a default indicator.

Sample Code

This code sets the WebButton as the default button. It is in the Opening event of the control.

Me.Default = True