Skip to content

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

@torenord

Description

@torenord

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions