onImeAction

inline fun EditText.onImeAction(crossinline action: (text: String) -> Unit)

Listens for either the enter key to be pressed or the soft keyboard's editor action to activate.