observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Unexpected characters in mobile Chrome #594

Closed nachocab closed 10 months ago

nachocab commented 10 months ago

Describe the bug When editing a cell using mobile Chrome (at least in Android), typing some keywords results in special characters being added. They can't be deleted and they cause a syntax error.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Javascript cell using the latest mobile Chrome (Firefox doesn't have this issue)
  2. Type "new" and hit space
  3. Two red dots appear which results in a syntax error. They can't be deleted. They appear to be the Object replacement character. Here's a live example.

Screenshot:

CleanShot 2023-08-22 at 19 54 15@2x
mootari commented 10 months ago

@nachocab Do you get the same behavior when typing in the demo editor on https://codemirror.net/ ?

And could you perhaps try a different on-screen keyboard that is tailored to code input, like Hacker's Keyboard?

nachocab commented 10 months ago

Thanks, @mootari I don't get the same behavior on CodeMirror, but the issue does go away if I switch to Google Keyboard (Gboard) instead of Microsoft Swiftkey, so I'm closing this issue.