observablehq / feedback

Customer submitted bugs and feature requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected characters in mobile Chrome

nachocab opened this issue · comments

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

@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?

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.