Merge pull request #10236 from igorkorsukov/bugs/9996_go_to_top_staff
Added Go to top staff shortcut, and fixed selectTopStaff method
This commit is contained in:
commit
76bce4fb5f
4 changed files with 21 additions and 2 deletions
|
@ -370,6 +370,11 @@
|
|||
<seq>Ctrl+Alt+Up</seq>
|
||||
<ctx>notation-focused</ctx>
|
||||
</SC>
|
||||
<SC>
|
||||
<key>top-staff</key>
|
||||
<seq></seq>
|
||||
<ctx>notation-focused</ctx>
|
||||
</SC>
|
||||
<SC>
|
||||
<key>first-element</key>
|
||||
<seq>Ctrl+Home</seq>
|
||||
|
|
|
@ -370,6 +370,11 @@
|
|||
<seq>Ctrl+Alt+Up</seq>
|
||||
<ctx>notation-focused</ctx>
|
||||
</SC>
|
||||
<SC>
|
||||
<key>top-staff</key>
|
||||
<seq></seq>
|
||||
<ctx>notation-focused</ctx>
|
||||
</SC>
|
||||
<SC>
|
||||
<key>first-element</key>
|
||||
<seq>Ctrl+Home</seq>
|
||||
|
|
|
@ -379,6 +379,11 @@
|
|||
<seq>Ctrl+Alt+Up</seq>
|
||||
<ctx>notation-focused</ctx>
|
||||
</SC>
|
||||
<SC>
|
||||
<key>top-staff</key>
|
||||
<seq></seq>
|
||||
<ctx>notation-focused</ctx>
|
||||
</SC>
|
||||
<SC>
|
||||
<key>first-element</key>
|
||||
<seq>Ctrl+Home</seq>
|
||||
|
|
|
@ -2127,8 +2127,12 @@ void NotationInteraction::selectTopStaff()
|
|||
if (score()->noteEntryMode()) {
|
||||
score()->inputState().moveInputPos(el);
|
||||
}
|
||||
score()->select(el, SelectType::SINGLE, 0);
|
||||
notifyAboutSelectionChanged();
|
||||
|
||||
if (el->type() == ElementType::CHORD) {
|
||||
el = Ms::toChord(el)->upNote();
|
||||
}
|
||||
|
||||
select({ el }, SelectType::SINGLE, 0);
|
||||
}
|
||||
|
||||
void NotationInteraction::selectEmptyTrailingMeasure()
|
||||
|
|
Loading…
Reference in a new issue