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

Text selection is not shown when the copy context menu is shown #1315

Open
birtles opened this issue Sep 12, 2023 · 1 comment
Open

Text selection is not shown when the copy context menu is shown #1315

birtles opened this issue Sep 12, 2023 · 1 comment

Comments

@birtles
Copy link
Member

birtles commented Sep 12, 2023

STR:

On Firefox beta/release or any other browser that doesn't support the CSS Highlight API (e.g. release versions of Safari, I think)

  1. Hover over some text, e.g. 点々
  2. Notice that "点々" is selected
  3. Click the first entry in the window to show the copy context menu

Expected results: The 点々 text should remain selected
Actual results: The selection is cleared when the context menu is shown

I suspect this is due to a change in focus. In Web browsers focus and selection are not the same thing but they definitely influence one another.

It might not be worth fixing this if browsers will ship the CSS Highlight API in the coming months.

@Tomalak
Copy link

Tomalak commented Sep 13, 2023

Alright, I'll file a separate issue like this next time, instead of cramming it into the footnote of another. :)

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