Crossword inputs not functioning correctly on Android mobile devices
Submitted by mollieboots on Wed, 03/23/2022 - 22:52
Forums:
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:
- if you type in “W”, then an “H”, instead of the expected “WH” the answer bar will show “WWH”.
- If the bar already shows “PAR” and you type an “I”, the output would be “PARPARI”.
- 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
Thu, 03/24/2022 - 10:01
Permalink
Hi!This is a bug in Samsung's
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
Thu, 03/24/2022 - 16:32
Permalink
Hi mollieboots!I have added a
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
mollieboots
Thu, 03/24/2022 - 21:31
Permalink
This is great, thank you
This is great, thank you Oliver!