onDone

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

Both sets the EditText.setImeOptions to "Done" and listens for the IME action.