use standard IM text input convention

This commit is contained in:
andrekir 2022-05-06 17:25:35 -03:00
parent 4b3427fe8c
commit 99dfc8014a
2 changed files with 3 additions and 6 deletions

View file

@ -59,9 +59,6 @@ class MessagesFragment : Fragment(), Logging {
// Allows textMultiline with IME_ACTION_SEND
private fun EditText.onActionSend(func: () -> Unit) {
imeOptions = EditorInfo.IME_ACTION_SEND
InputType.TYPE_TEXT_FLAG_MULTI_LINE
setRawInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
setOnEditorActionListener { _, actionId, _ ->
if (actionId == EditorInfo.IME_ACTION_SEND) {