Alexa_Gal
11/24/2021, 4:20 PMback
button has been pressed? i tried with all the KeyboardActions
but none of them are triggered when i press that button 😕 (using BasicTextField)rook
11/24/2021, 4:24 PMAlexa_Gal
11/24/2021, 4:43 PM.onKeyEvent {
if (it.nativeKeyEvent.keyCode == KEYCODE_DEL) {
onBack()
}
true
}
rook
11/24/2021, 5:06 PMrook
11/24/2021, 5:07 PMAlexa_Gal
11/24/2021, 5:08 PMKEYCODE_DEL
😞Alexa_Gal
11/24/2021, 5:09 PMkeyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),
modifier = Modifier
.align(Alignment.Center)
.onKeyEvent {
Log.e("key", "${it.nativeKeyEvent.keyCode}")
if (it.nativeKeyEvent.keyCode == KEYCODE_DEL) {
onBack()
}
true
}
.focusRequester(focusRequester)
rook
11/24/2021, 5:10 PMrook
11/24/2021, 5:11 PMactionPrevious
might be the one you’re looking for