Skip to content

Fix #27633: Prevent triggering note input mode when app window is not in focus #27776

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RomanPudashkin
Copy link
Contributor

Resolves: #27633

return false;
}

if (hasSelection() && !noteOrRestSelected()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition seems new to me. Is it new desired behaviour? (Not sure how nice that is...)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it probably comes from

Note input with a computer or MIDI keyboard should only work when a note, rest, or measure is selected.

I think that is only about when pressing a note name keyboard shortcut. But entering note input mode by explicitly clicking the note input button or by pressing N or M, should stay possible, whatever is selected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes: start note input only when a note, rest, or nothing is selected. To prevent it from starting when you have a text element selected (let's say lyrics, in that case, it deletes the lyrics for some reason) for example. Either way it should be tested for usability

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is only about when pressing a note name keyboard shortcut. But entering note input mode by explicitly clicking the note input button or by pressing N or M, should stay possible, whatever is selected.

I asked @bkunda about this, and he said we should have the same consistent behaviour for both MIDI & computer keyboards

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, typing an A on the computer keyboard should do the same as typing an A on the MIDI keyboard (namely nothing, unless we are already in note input mode or a note or rest is selected).

But Bradley said nothing about starting note input explicitly by pressing N or M, or by pressing a button in the toolbar. So, that should remain possible, regardless of whatever is 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.

Prevent triggering note input mode when app window is not in focus
2 participants