Exit note input mode when changing navigation, fixing mouse panning bug on publish screen
Fixing bug where unable to pan across publish page with mouse when switched to page while in note input mode.
Resolves: #15277
Disable note input mode when switching from notation tab, fixing bug where the user is unable to pan across the score in the publish tab due to still being in that mode.
- [x] I signed the CLA
- [x] The title of the PR describes the problem it addresses
- [x] Each commit's message describes its purpose and effects, and references the issue it resolves
- [x] If changes are extensive, there is a sequence of easily reviewable commits
- [x] The code in the PR follows the coding rules
- [x] There are no unnecessary changes
- [x] The code compiles and runs on my machine, preferably after each commit individually
- [ ] I created a unit test or vtest to verify the changes I made (if applicable)
@randoguyname I think we can fix the bug like this:
if (!isPrinting) {
m_noteInputCursor->paint(painter);
}
It is in AbstractNotationPaintView::paint. We shouldn't draw the note input cursor for printing(publish) mode
Drag of notes and text in normal mode is also enabled in Publish when it presumably should not be, so that also needs to be addressed, either as part of this same change or a separate one.