facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.56k stars 2.64k forks source link

Support Dictation on iOS #756

Open skhavari opened 7 years ago

skhavari commented 7 years ago

New Feature Request

Repro

  1. Create a vanilla draft-js app
  2. Open it with chrome/safari on ios
  3. Give the editor focus
  4. After the keyboard pops up, press the microphone button on the keyboard
  5. Start dictating

Expect

  1. Dictated text to work as if the content was entered with the keyboard.

Actual

  1. In most cases, especially after you say new line text entry becomes invisible. After you dismiss the dictation by pressing done, the text does get added but becomes impossible to edit or delete.

(ps: do you expect keyboard modifiers [ctrl/opt/cmd] to work on iOS with an external keyboard? they currently do not).

Env

  1. Tip of master for react/draft-js
  2. Latest chrome for iOS
  3. Latest safari for iOS
skhavari commented 7 years ago

Looks like you can repro this on facebook.com also

  1. Login to your facebook.com account on chrome/safari on an ipad
  2. Click to update your status
  3. Select the microphone and dictate away.

You get the same behavior in draft-js as you do on fb.

thehappycoder commented 5 years ago

That's very unfortunate that it's still a bug.

NicolasNelson89 commented 3 years ago

Unfortunately this is still an issue. Any plans on looking into this? Would be great!

apurvamistry commented 3 years ago

This still seems to be an issue in 2021. Can someone please confirm if there is a plan to support this? Looks like a lot of our mobile users tend to use dictation on their keyboards, and the non-ability to remove characters is a bigger problem than we think.

dandiep commented 2 years ago

This is a big issue for us. Any pointers on where to look in the code to address?