Skip to content

onKeyPress being called after dictation in iOS #22139

Description

@elliscwc

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Memory: 405.82 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.12.0 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.4 => 0.57.4

Description

In iOS, when the text dictation ends, onKeyPress event is called for unknown reason.

  • The onKeyPress event return Backspace key which interfere with our text input logic.
  • The event with that key doesn't actually delete a letter.

Please consider removing it, thank you~!

Reproducible Demo

Somehow it must test on device instead of appetize for the demo to work.
https://snack.expo.io/@elliscwc/onkeypress-after-dictation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions