Skip to content

x/website: in certain browsers/scenarios, pressing [return] in playground editor does not move cursor to next line #49794

@nishanths

Description

@nishanths

What is the URL of the page with the issue?

https://go.dev/play

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

Screenshot

Scenario 1

Screen Shot 2021-11-25 at 5 40 02 PM

Scenario 2

Screen Shot 2021-11-25 at 5 39 40 PM

What did you do?

  • Visited URL mentioned above.
  • Move cursor to line 10, either using mouse or keyboard.
  • Enter the text type A struct { (scenario 2 only).
  • Press return on keyboard.

What did you expect to see?

Expected cursor to move to line 11.

What did you see instead?

No change in cursor position.

Extra notes

These are illustrative of the scenarios I can reliably reproduce the bug. There may or may not be more scenarios. Note that I was using Safari 15.1 on macOS 12. The issue didn't exist in Chrome. I didn't try other browsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions