Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing text field impossible on iPad while external keyboard connected #4818

Closed
torenord opened this issue May 10, 2021 · 0 comments
Closed
Assignees
Labels
component: mobile issue: bug Describes why the code or behaviour is wrong

Comments

@torenord
Copy link

Describe the bug

Touching a text field on iPad while external keyboard is connected causes the field to immediately lose focus making editing impossible.

A workaround is making Blockly.utils.userAgent.IPAD true by, for instance, turning the Safari setting "Request Desktop Website" off or setting it manually. A prompt then opens instead of the inline editor and editing is possible. (Blockly.utils.userAgent.IPAD is false on iPad due to the user agent string sent from Safari on iPad.)

To Reproduce

  1. Open Safari on iPad with external keyboard connected
  2. Go to https://blockly-demo.appspot.com/static/demos/fixed/index.html
  3. Touch a block's text field
  4. The field receives focus and then immediately loses it

Expected behavior

The text field should keep focus after touch.

Smartphone:

  • Device: iPad (8th generation)
  • OS: 14.4
  • Browser: Safari
  • Version: 14.0.3
  • User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: mobile issue: bug Describes why the code or behaviour is wrong
Projects
None yet
Development

No branches or pull requests

3 participants