mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
parent
066e44ae00
commit
5693874db1
1 changed files with 4 additions and 3 deletions
|
|
@ -451,10 +451,11 @@ private fun TextInput(
|
|||
Spacer(Modifier.width(8.dp))
|
||||
Button(
|
||||
onClick = {
|
||||
if (message.value.text.isNotEmpty()) {
|
||||
onClick(message.value.text)
|
||||
message.value = TextFieldValue("")
|
||||
val str = message.value.text.trim()
|
||||
if (str.isNotEmpty()) {
|
||||
focusManager.clearFocus()
|
||||
onClick(str)
|
||||
message.value = TextFieldValue("")
|
||||
}
|
||||
},
|
||||
modifier = Modifier.size(48.dp),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue