Text.setActivatesDefault

void setActivatesDefault(bool activates)

If activates is true, pressing Enter will activate the default widget for the window containing self.

This usually means that the dialog containing the [gtk.text.Text] will be closed, since the default widget is usually one of the dialog buttons.

Parameters

activatestrue to activate window’s default widget on Enter keypress