You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Composable
fun App() {
var keyEventsCounter by remember { mutableStateOf(0) }
Column(
Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
) {
Text("onKeyEvent counter: $keyEventsCounter")
var text by remember { mutableStateOf("type here with onscreen keyboard") }
OutlinedTextField(
value = text,
onValueChange = { text = it },
modifier = Modifier.onKeyEvent {
keyEventsCounter++
false
}
)
}
}
Expected behavior
onKeyEvent should work also with onscreen keyboard
The text was updated successfully, but these errors were encountered:
Android has the same issue, there is no way of making a composable able to receive events from on-screen keyboard. It works with a hardware keyboard, but not with an on-screen one.
Describe the bug
Modifier.onKeyEvent doesn't works with virtual iOS keyboard. (It works only with physical keyboard in simulator)
Affected platforms
Versions
To Reproduce
Use this code:
Expected behavior
onKeyEvent should work also with onscreen keyboard
The text was updated successfully, but these errors were encountered: