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

fix #279926: shift+click to select similar #6137

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

MarcSabatella
Copy link
Contributor

Resolves: https://musescore.org/en/node/279926

A common request is for click/shift+click to select similar elements.
So for example, click one lyric, shift+click another,
would select all lyrics in that range.

Currently, shift+click of anything but a note or rest
simply selects the elements and loses the previous selection.
This change catches that case, and if there is an element selected,
and the selected element and the shift+clicked elements are same type,
we build a range selection that encompasses thenm both,
then run selectSimilarInRange.
I also check if the two elements are in the same voice,
and if so, I limit the selection to just that voice
rather than all elements on that staff as would normally be the case.
But aside from that, it also allows for selection across staves,
so you can click an articulation on one staff,
shift+click another on another staff,
and all intervening articulations are selected.

A common request is for click/shift+click to select similar elements.
So for example, click one lyric, shift+click another,
would select all lyrics in that range.

Currently, shift+click of anything but a note or rest
simply selects the elements and loses the previous selection.
This change catches that case, and if there is an element selected,
and the selected element and the shift+clicked elements are same type,
we build a range selection that encompasses thenm both,
then run selectSimilarInRange.
I also check if the two elements are in the same voice,
and if so, I limit the selection to just that voice
rather than all elements on that staff as would normally be the case.
But aside from that, it also allows for selection across staves,
so you can click an articulation on one staff,
shift+click another on another staff,
and all intervening articulations are selected.
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

Successfully merging this pull request may close these issues.

None yet

3 participants