Skip to content

Commit

Permalink
fix #152766: Add keyboard shortcuts for up bow and down bow symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-urs committed Jan 6, 2017
1 parent 53d4ad2 commit 1b40bdc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3162,6 +3162,8 @@ void Score::cmd(const QAction* a)
{ "add-marcato", [this]{ addArticulation(SymId::articMarcatoAbove); }},
{ "add-sforzato", [this]{ addArticulation(SymId::articAccentAbove); }},
{ "add-trill", [this]{ addArticulation(SymId::ornamentTrill); }},
{ "add-stringsUpBow", [this]{ addArticulation(SymId::stringsUpBow); }},
{ "add-stringsDownBow", [this]{ addArticulation(SymId::stringsDownBow); }},
{ "add-8va", [this]{ cmdAddOttava(Ottava::Type::OTTAVA_8VA); }},
{ "add-8vb", [this]{ cmdAddOttava(Ottava::Type::OTTAVA_8VB); }},
{ "note-longa", [this]{ padToggle(Pad::NOTE00); }},
Expand Down
20 changes: 20 additions & 0 deletions mscore/shortcut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,26 @@ Shortcut Shortcut::_sc[] = {
Icons::Invalid_ICON,
Qt::WindowShortcut
},
{
MsWidget::SCORE_TAB,
STATE_NORMAL | STATE_NOTE_ENTRY,
"add-stringsUpBow",
QT_TRANSLATE_NOOP("action","Up Bow"),
QT_TRANSLATE_NOOP("action","Toggle up bow"),
0,
Icons::Invalid_ICON,
Qt::WindowShortcut
},
{
MsWidget::SCORE_TAB,
STATE_NORMAL | STATE_NOTE_ENTRY,
"add-stringsDownBow",
QT_TRANSLATE_NOOP("action","Down Bow"),
QT_TRANSLATE_NOOP("action","Toggle down bow"),
0,
Icons::Invalid_ICON,
Qt::WindowShortcut
},
{
MsWidget::SCORE_TAB,
STATE_NORMAL | STATE_NOTE_ENTRY,
Expand Down

0 comments on commit 1b40bdc

Please sign in to comment.