set_activates_default


Description:

public void set_activates_default (bool activates)

Sets whether pressing <kbd>Enter</kbd> will activate the default widget.

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

Parameters:

this

a text widget

activates

true to activate window’s default widget on <kbd>Enter</kbd> keypress