Pike v8.1 release 6

Method GTK2.Entry()->set_activates_default()


Method set_activates_default

GTK2.Entry set_activates_default(int setting)

Description

If setting is true, pressing Enter will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons.