setActivatesDefault

open fun setActivatesDefault(activates: Boolean)

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

This usually means that the dialog containing the GtkText will be closed, since the default widget is usually one of the dialog buttons.

Parameters

activates

true to activate window’s default widget on Enter keypress