JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.88k stars 1.15k forks source link

iOS on-screen backspace not handled in `onPreviewKeyEvent` #3855

Open dima-avdeev-jb opened 10 months ago

dima-avdeev-jb commented 10 months ago

Describe the bug

Backspace key not handled with iOS onscreen keyboard. But it handled with physical keyboard on simulator.

Affected platforms Select one of the platforms below:

Versions

To Reproduce

Modifier.onPreviewKeyEvent { event ->
    if (event.key == Key.Backspace) {
        println("backspace pressed")
    }
}

Reproducer: https://github.com/dima-avdeev-jb/ios-simulator-preview-key-event-backspace

farhazulmullick-pw commented 9 months ago

@dima-avdeev-jb Do you know any workaround to detect backspace in iOS. Like how BasicTextField detect backspace.

dima-avdeev-jb commented 8 months ago

@farhazulmullick-pw Sorry, but I don't know any workaround

SentsovSA commented 2 months ago

Hello! Any updates about this bug?

okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.