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

Select All not working properly in Chrome (and Safari) #1321

Closed
cmcisaac6 opened this issue Jan 11, 2024 · 1 comment
Closed

Select All not working properly in Chrome (and Safari) #1321

cmcisaac6 opened this issue Jan 11, 2024 · 1 comment

Comments

@cmcisaac6
Copy link

Describe the issue

In a moderately large document, in Chrome and Safari, right-clicking and then clicking "Select All" does not select the whole document. The same applies when using the browser menu to Edit > Select All, but not when using the keyboard shortcut Ctrl+A or Cmd+A.

In the example video shown, if the cursor is within the first 62 lines, it will select the first 62 lines only. If the cursor is after that, then it won't select anything

It looks like a similar issue was reported recently on iOS Safari #1304.

There's also an older issue related to this on Safari, but that was marked as a browser bug #1052. This suggests that it was previously working ok on Chrome.

Screen.Recording.2024-01-11.at.15.39.27.mov

Browser and platform

Chrome 120.0.6099.129, Safari 16.6 on macOS 13.5 and also reproduced on Windows.

Reproduction link

https://codemirror.net/try/?c=aW1wb3J0IHttaW5pbWFsU2V0dXAsIEVkaXRvclZpZXd9IGZyb20gImNvZGVtaXJyb3IiCgpjb25zdCBsaW5lcyA9IFtdCgpmb3IgKGxldCBpID0gMDsgaSA8IDUwMDsgaSsrKSB7CiAgbGluZXMucHVzaChgTGluZSAke2l9YCkKfQoKbmV3IEVkaXRvclZpZXcoewogIGRvYzogbGluZXMuam9pbignXG4nKSwKICBleHRlbnNpb25zOiBtaW5pbWFsU2V0dXAsCiAgcGFyZW50OiBkb2N1bWVudC5ib2R5Cn0pCg==

@marijnh
Copy link
Member

marijnh commented Jan 25, 2024

This patch extends the iOS patch to also cover Chrome's behavior here.

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

No branches or pull requests

2 participants