Thread
#compose
    Yang

    Yang

    1 year ago
    Is it possible to detect backspace (soft keyboard) key event?
    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.
    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.