В BasicTextField с TextFieldState в реактивном пакете создайте клавиатуру. Действие не вызывается при нажатии кнопки «Выполнено» на клавиатуре. Ниже приведен мой код:
BasicTextField(
modifier = Modifier,
textStyle = TextStyle(
textAlign = TextAlign.End,
fontSize = 16.sp,
color = Color.DarkGray
),
inputTransformation = InputTransformation.maxLength(3),
enabled = true,
state = rememberTextFieldState(),
keyboardOptions = KeyboardOptions(
imeAction = ImeAction.Done,
keyboardType = KeyboardType.Number
),
lineLimits = TextFieldLineLimits.SingleLine,
onKeyboardAction = {
KeyboardActions(
onDone = {
Log.d("bbbrand", "onDone")
keyboard?.hide()
}
)
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... ctextfield