Skip to content

Commit 77002ec

Browse files
committed
Move to previous lyric when pressing backspace and current lyric is empty
1 parent d177570 commit 77002ec

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/app/configs/data/shortcuts.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,11 +946,9 @@
946946
<SC>
947947
<key>prev-text-element</key>
948948
<seq>Shift+Space</seq>
949-
</SC>
950-
<SC>
951-
<key>prev-text-element</key>
952949
<seq>Left</seq>
953-
</SC>
950+
<seq>Backspace</seq>
951+
</SC>
954952
<SC>
955953
<key>next-syllable</key>
956954
<seq>-</seq>

src/app/configs/data/shortcuts_azerty.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,8 @@
983983
<SC>
984984
<key>prev-text-element</key>
985985
<seq>Shift+Space</seq>
986+
<seq>Left</seq>
987+
<seq>Backspace</seq>
986988
</SC>
987989
<SC>
988990
<key>toggle-visible</key>

src/app/configs/data/shortcuts_mac.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -947,11 +947,9 @@
947947
<SC>
948948
<key>prev-text-element</key>
949949
<seq>Shift+Space</seq>
950-
</SC>
951-
<SC>
952-
<key>prev-text-element</key>
953950
<seq>Left</seq>
954-
</SC>
951+
<seq>Backspace</seq>
952+
</SC>
955953
<SC>
956954
<key>next-syllable</key>
957955
<seq>-</seq>

src/engraving/dom/lyrics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ bool Lyrics::isEditAllowed(EditData& ed) const
280280
}
281281
}
282282

283-
if (ed.key == Key_Left) {
283+
if (ed.key == Key_Left || ed.key == Key_Backspace) {
284284
return cursor()->column() != 0 || cursor()->hasSelection();
285285
}
286286

0 commit comments

Comments
 (0)