-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: master
Are you sure you want to change the base?
Fix #27633: Prevent triggering note input mode when app window is not in focus #27776
Conversation
1a0de4c
to
8abc754
Compare
return false; | ||
} | ||
|
||
if (hasSelection() && !noteOrRestSelected()) { |
There was a problem hiding this comment.
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...)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Resolves: #27633