Crossword inputs not functioning correctly on Android mobile devices

On Android mobile devices when typing from the input underneath the clue, there’s a bug that repeats all letters currently typed upon the addition of any new letter.

Examples: 

  1. if you type in “W”, then an “H”, instead of the expected “WH” the answer bar will show “WWH”.
  2. If the bar already shows “PAR” and you type an “I”, the output would be “PARPARI”.
  3. In the attached screenshot from the h5p site example crossword, I attempted to type in "PARIS" and "NEW YORK" and the outputs were "PPAPP" and "NNENNEW_" respectively.

This only happens when typing from the text input below the crossword canvas (not from the input directly on the game canvas), and only on mobile. This has been reproduced on Samsung Galaxy AO1 and Samsung Galaxy S21+ devices both from within the Chome browser. It does not appear to happen on iPhones, on Safari or Chrome.

otacke's picture

Hi!

This is a bug in Samsung's virtual keyboard, see https://stackoverflow.com/questions/57736045/samsung-mobile-keyboard-duplicates-letters-with-onkeyup-listener

Hope I can find a workaround soon. You might consider other virtual keyboards, too, e. g. SwiftKey.

Best,

Oliver 

otacke's picture

Hi mollieboots!

I have added a workaround for that bug in Samsung's virtual keyboard to Crossword v0.4.10. The glitch is still visible briefly, but the input is not tampered with anymore. Please have a look at my demo site to verify that it's working for you, too.

There may be a better solution, but this is what I had time for only.

If you need the solution right now, you could download my demo conten and upload it to your site (or if you're lacking the rights to install libraries, your admin will need to do that). If it's not urgent, you could wait until the H5P core team finds time to release the update on the H5P Hub.

Cheers,
Oliver

This is great, thank you Oliver!