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 #297446: shift+click empty space clears selection #6138

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

MarcSabatella
Copy link
Contributor

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

Currently if you have a selection and try to shift+click to extend it
but accidentally click too far above or below where you intended,
the existing selection is lost.
There is no benefit to this behavior, since the way to clear a selection
is to click, not shift+click, an empty space.
Shift+click an empty space should be harmless, as ctrl+click is.
I previously implemented the check for ctrl+click,
I simply negeclted to include shift+click.
This is fixed by changing the two tests that were detecting ctrl+click
and skipping the usual clear selection in the case,
so they instead skip the clear for both ctrl & shift click
(actually, for anything but plain click).

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

Currently if you have a selection and try to shift+click to extend it
but accidentally click too far above or below where you intended,
the existing selection is lost.
There is no benefit to this behavior, since the way to clear a selection
is to *click*, not shift+click, an empty space.
Shift+click an empty space should be harmless, as ctrl+click is.
I previously implemented the check for ctrl+click,
I simply negeclted to include shift+click.
This is fixed by changing the two tests that were detecting ctrl+click
and skipping the usual clear selection in the case,
so they instead skip the clear for both ctrl & shift click
(actually, for anything but plain click).
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.

3 participants