OutlinedTextField(
value = intro,
onValueChange = { intro = it },
colors = TextFieldDefaults.outlinedTextFieldColors(
focusedBorderColor = Pink, unfocusedBorderColor = Brown
),
modifier = Modifier
.bringIntoViewRequester(requester)
.onFocusEvent { focusState ->
if (focusState.isFocused) {
coroutineScope.launch {
delay(200)
requester.bringIntoView()
}
}
}
.fillMaxWidth()
.padding(30.dp, 5.dp)
.height(150.dp),
singleLine = false,
maxLines = 5,
textStyle = TextStyle.Default.copy(fontSize = 18.sp),
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Text,
imeAction = ImeAction.Done
),
keyboardActions = KeyboardActions(onDone = {
focusManager.clearFocus()
}),
)
I'm developing an Android app using Jetpack Compose. When I try to delete input texts in Textfield, holding backspace doesn't keep deleting character one by one, but only the last one, so I have to keep clicking the delete button.
Does anyone know how to solve this?
Thank you!
