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

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

Open
nishanths opened this issue Nov 25, 2021 · 2 comments

Comments

@nishanths
Copy link

@nishanths nishanths commented Nov 25, 2021

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.

@gopherbot gopherbot added this to the Unreleased milestone Nov 25, 2021
@nishanths nishanths changed the title x/website: in certain scenarios, pressing [return] in playground editor does not move cursor to next line x/website: in certain browsers/scenarios, pressing [return] in playground editor does not move cursor to next line Nov 25, 2021
@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Nov 25, 2021

Interesting, I can reproduce this on safari

Loading

@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Nov 25, 2021

cc @rsc

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants