compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

iOS on-screen backspace not handled in `onPreviewKeyEvent`

Open dima-avdeev-jb opened this issue 2 years ago • 3 comments

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:

  • iOS

Versions

  • Kotlin version*: 1.9.10
  • Compose Multiplatform version*: 1.5.3, 1.5.10-rc01

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

dima-avdeev-jb avatar Oct 23 '23 19:10 dima-avdeev-jb

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

farhazulmullick-pw avatar Dec 06 '23 15:12 farhazulmullick-pw

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

dima-avdeev-jb avatar Dec 24 '23 09:12 dima-avdeev-jb

Hello! Any updates about this bug?

SentsovSA avatar Jun 25 '24 12:06 SentsovSA

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

okushnikov avatar Jul 14 '24 14:07 okushnikov