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

Small request concerning highlighted element and selection mode #1200

Open
JoyfulGen opened this issue Feb 26, 2024 · 0 comments
Open

Small request concerning highlighted element and selection mode #1200

JoyfulGen opened this issue Feb 26, 2024 · 0 comments

Comments

@JoyfulGen
Copy link
Contributor

If a user clicks on a selection mode in the EDIT panel, whatever element on the page is currently highlighted automatically un-highlights. This makes sense; normally, if the user is choosing a new selection mode, it means they want to select something different than what is currently highlighted. However! I would like to make the following request: if the user chooses a selection mode that is the same as the current highlighted element, that element remains highlighted. So for example, if a nc is highlighted and I choose the nc selector, the nc on the page remains highlighted. There are two situations where this can happen:

  1. The obvious one is just re-choosing the selection you're currently in. I know this is redundant, but I accidentally do it fairly often because of my built-in keyboard shortcut habits.
  2. The other one is a specific case: if you click on a text nugget in the "Syllables on this page" box, edit the text, and press enter, the relevant syllable and bounding box become highlighted, regardless of the current selection mode. In this specific case, would it be possible for the syllable to stay highlighted if the user chooses the syllable selector, and for the bbox to stay highlighted if the user chooses the bbox selector?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant