https://kotlinlang.org logo
#compose
Title
# compose
p

Prashant Priyadarshi

10/30/2020, 6:39 PM
onImeActionPerformed is not getting invoked on submit button click in soft keyboard. This code was working earlier. Have there been any changes ? As of now I am on alpha06
TextField(
value = text.value,
onValueChange = { s ->
text.value = s
},
keyboardType = KeyboardType.Text,
imeAction = ImeAction.Send,
onImeActionPerformed = { action: ImeAction, keyboard: SoftwareKeyboardController?
->
// close keyboard when submit button is clicked
if(action == ImeAction.Send)
keyboard?.hideSoftwareKeyboard()
},
)
s

Siyamed

10/30/2020, 6:56 PM
Can you please create a ticket
p

Prashant Priyadarshi

10/31/2020, 8:49 AM
@Siyamed yes that's right , I put a log statement inside onImeActionPerformed, it was never printed instead in textfield, a newline is added to the value