scratchfoundation/scratch-blocks

Text input inconsistent when using InputEvent method

tutacat opened this issue · 0 comments

Expected Behavior

Text box contains exactly what string is entered by the operating system, and matching any edits to the text

Actual Behavior

Text input lags or doesn't match what was entered by native input method.

Steps to Reproduce

Use an input method that doesn't use Key events (KeyboardEvent) to input text, in block inputs.

Steps to reproduce the behavior:

  1. Go to 'https://scratch.mit.edu/projects/editor'
  2. Add a block with a text/number input
  3. Click on the text input
  4. Use a screen keyboard, for example on smartphone, or Windows or GNOME in-built screen keyboards or voice or handwriting input to enter text.
  5. See inconsistent input when typing, pressing backspace, dragging cursor, selecting text using the keyboard, and inputting words; this is where the browser calls upon an input method, and receives the string data rather than keypresses.
  6. Sometimes have to select text to be able to delete/overwrite it.

System Details

Linux/GNOME osk, and Android/Samsung keyboard

Screenshots

using screen keyboard