setDefaultResponse

open fun setDefaultResponse(responseId: <Error class: unknown class>)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.10.

---

Sets the last widget in the info bar’s action area with the given response_id as the default widget for the dialog.

Pressing “Enter” normally activates the default widget.

Note that this function currently requires @info_bar to be added to a widget hierarchy.

Parameters

responseId

a response ID