Is it possible to detect backspace (soft keyboard) key event?
Yang
03/17/2021, 3:03 PM
I’m trying something like the following (or gmail app) where pressing the backspace (delete) key on the soft keyboard when the text field is empty would remove the last chip.
Yang
03/17/2021, 3:10 PM
onKeyEvent
only works with hardware keyboard. I tired to do diffing manually from
onValueChange
but it’s always fired during initial composition so it doesn’t work reliably e.g. on config change.